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

Side by Side Diff: webrtc/media/engine/fakewebrtcvcmfactory.h

Issue 1715883002: Remove DeviceManager and DeviceInfo. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 9 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 * 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 #ifndef WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVCMFACTORY_H_ 11 #ifndef WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVCMFACTORY_H_
12 #define WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVCMFACTORY_H_ 12 #define WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVCMFACTORY_H_
13 13
14 #include <vector> 14 #include <vector>
15 15
16 #include "webrtc/media/engine/fakewebrtcdeviceinfo.h"
16 #include "webrtc/media/engine/fakewebrtcvideocapturemodule.h" 17 #include "webrtc/media/engine/fakewebrtcvideocapturemodule.h"
17 #include "webrtc/media/engine/webrtcvideocapturer.h" 18 #include "webrtc/media/engine/webrtcvideocapturer.h"
18 19
19 // Factory class to allow the fakes above to be injected into 20 // Factory class to allow the fakes above to be injected into
20 // WebRtcVideoCapturer. 21 // WebRtcVideoCapturer.
21 class FakeWebRtcVcmFactory : public cricket::WebRtcVcmFactoryInterface { 22 class FakeWebRtcVcmFactory : public cricket::WebRtcVcmFactoryInterface {
22 public: 23 public:
23 virtual webrtc::VideoCaptureModule* Create(int module_id, 24 virtual webrtc::VideoCaptureModule* Create(int module_id,
24 const char* device_id) { 25 const char* device_id) {
25 if (!device_info.GetDeviceById(device_id)) return NULL; 26 if (!device_info.GetDeviceById(device_id)) return NULL;
(...skipping 13 matching lines...) Expand all
39 FakeWebRtcDeviceInfo device_info; 40 FakeWebRtcDeviceInfo device_info;
40 std::vector<FakeWebRtcVideoCaptureModule*> modules; 41 std::vector<FakeWebRtcVideoCaptureModule*> modules;
41 }; 42 };
42 43
43 FakeWebRtcVideoCaptureModule::~FakeWebRtcVideoCaptureModule() { 44 FakeWebRtcVideoCaptureModule::~FakeWebRtcVideoCaptureModule() {
44 if (factory_) 45 if (factory_)
45 factory_->OnDestroyed(this); 46 factory_->OnDestroyed(this);
46 } 47 }
47 48
48 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVCMFACTORY_H_ 49 #endif // WEBRTC_MEDIA_ENGINE_FAKEWEBRTCVCMFACTORY_H_
OLDNEW
« no previous file with comments | « webrtc/media/devices/win32devicemanager.cc ('k') | webrtc/media/engine/fakewebrtcvideocapturemodule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698