Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: webrtc/media/devices/devicemanager.h

Issue 1676503002: Remove fake cricket::VideoCapturer devices. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 void set_initialized(bool initialized) { initialized_ = initialized; } 187 void set_initialized(bool initialized) { initialized_ = initialized; }
188 188
189 void set_watcher(DeviceWatcher* watcher) { watcher_.reset(watcher); } 189 void set_watcher(DeviceWatcher* watcher) { watcher_.reset(watcher); }
190 DeviceWatcher* watcher() { return watcher_.get(); } 190 DeviceWatcher* watcher() { return watcher_.get(); }
191 191
192 private: 192 private:
193 // The exclusion_list MUST be a NULL terminated list. 193 // The exclusion_list MUST be a NULL terminated list.
194 static bool ShouldDeviceBeIgnored(const std::string& device_name, 194 static bool ShouldDeviceBeIgnored(const std::string& device_name,
195 const char* const exclusion_list[]); 195 const char* const exclusion_list[]);
196 bool GetFakeVideoCaptureDevice(const std::string& name, Device* out) const;
197 VideoCapturer* MaybeConstructFakeVideoCapturer(const Device& device) const;
198 196
199 bool initialized_; 197 bool initialized_;
200 rtc::scoped_ptr< 198 rtc::scoped_ptr<
201 VideoDeviceCapturerFactory> video_device_capturer_factory_; 199 VideoDeviceCapturerFactory> video_device_capturer_factory_;
202 rtc::scoped_ptr< 200 rtc::scoped_ptr<
203 ScreenCapturerFactory> screen_capturer_factory_; 201 ScreenCapturerFactory> screen_capturer_factory_;
204 std::map<std::string, VideoFormat> max_formats_; 202 std::map<std::string, VideoFormat> max_formats_;
205 rtc::scoped_ptr<DeviceWatcher> watcher_; 203 rtc::scoped_ptr<DeviceWatcher> watcher_;
206 rtc::scoped_ptr<rtc::WindowPicker> window_picker_; 204 rtc::scoped_ptr<rtc::WindowPicker> window_picker_;
207 }; 205 };
208 206
209 } // namespace cricket 207 } // namespace cricket
210 208
211 #endif // WEBRTC_MEDIA_DEVICES_DEVICEMANAGER_H_ 209 #endif // WEBRTC_MEDIA_DEVICES_DEVICEMANAGER_H_
OLDNEW
« no previous file with comments | « webrtc/build/sanitizers/tsan_suppressions_webrtc.cc ('k') | webrtc/media/devices/devicemanager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698