OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/media/devices/devicemanager.h" | 11 #include "webrtc/media/devices/devicemanager.h" |
12 | 12 |
13 #include "webrtc/base/fileutils.h" | 13 #include "webrtc/base/fileutils.h" |
14 #include "webrtc/base/logging.h" | 14 #include "webrtc/base/logging.h" |
15 #include "webrtc/base/pathutils.h" | 15 #include "webrtc/base/pathutils.h" |
16 #include "webrtc/base/stringutils.h" | 16 #include "webrtc/base/stringutils.h" |
17 #include "webrtc/base/thread.h" | 17 #include "webrtc/base/thread.h" |
18 #include "webrtc/base/windowpicker.h" | 18 #include "webrtc/base/windowpicker.h" |
19 #include "webrtc/base/windowpickerfactory.h" | 19 #include "webrtc/base/windowpickerfactory.h" |
20 #include "webrtc/media/base/mediacommon.h" | 20 #include "webrtc/media/base/mediacommon.h" |
21 #include "webrtc/media/base/videocapturer.h" | 21 #include "webrtc/media/base/videocapturer.h" |
22 #include "webrtc/media/base/videocapturerfactory.h" | 22 #include "webrtc/media/base/videocapturerfactory.h" |
23 #include "webrtc/media/devices/deviceinfo.h" | 23 #include "webrtc/media/devices/deviceinfo.h" |
24 | 24 |
25 #ifdef HAVE_WEBRTC_VIDEO | 25 #ifdef HAVE_WEBRTC_VIDEO |
26 #include "webrtc/media/webrtc/webrtcvideocapturerfactory.h" | 26 #include "webrtc/media/engine/webrtcvideocapturerfactory.h" |
27 #endif // HAVE_WEBRTC_VIDEO | 27 #endif // HAVE_WEBRTC_VIDEO |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 bool StringMatchWithWildcard( | 31 bool StringMatchWithWildcard( |
32 const std::pair<const std::basic_string<char>, cricket::VideoFormat> key, | 32 const std::pair<const std::basic_string<char>, cricket::VideoFormat> key, |
33 const std::string& val) { | 33 const std::string& val) { |
34 return rtc::string_match(val.c_str(), key.first.c_str()); | 34 return rtc::string_match(val.c_str(), key.first.c_str()); |
35 } | 35 } |
36 | 36 |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 if (ShouldDeviceBeIgnored(it->name, exclusion_list)) { | 296 if (ShouldDeviceBeIgnored(it->name, exclusion_list)) { |
297 it = devices->erase(it); | 297 it = devices->erase(it); |
298 } else { | 298 } else { |
299 ++it; | 299 ++it; |
300 } | 300 } |
301 } | 301 } |
302 return true; | 302 return true; |
303 } | 303 } |
304 | 304 |
305 } // namespace cricket | 305 } // namespace cricket |
OLD | NEW |