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

Unified Diff: webrtc/media/devices/mobiledevicemanager.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/media/devices/macdevicemanagermm.mm ('k') | webrtc/media/devices/win32deviceinfo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/devices/mobiledevicemanager.cc
diff --git a/webrtc/media/devices/mobiledevicemanager.cc b/webrtc/media/devices/mobiledevicemanager.cc
deleted file mode 100644
index 1b66814003d43677de4e4ae55a527b5ea68da514..0000000000000000000000000000000000000000
--- a/webrtc/media/devices/mobiledevicemanager.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#include <memory>
-
-#include "webrtc/base/arraysize.h"
-#include "webrtc/media/devices/devicemanager.h"
-#include "webrtc/modules/video_capture/video_capture_factory.h"
-
-namespace cricket {
-
-class MobileDeviceManager : public DeviceManager {
- public:
- MobileDeviceManager();
- virtual ~MobileDeviceManager();
- virtual bool GetVideoCaptureDevices(std::vector<Device>* devs);
-};
-
-MobileDeviceManager::MobileDeviceManager() {
- // We don't expect available devices to change on Android/iOS, so use a
- // do-nothing watcher.
- set_watcher(new DeviceWatcher(this));
-}
-
-MobileDeviceManager::~MobileDeviceManager() {}
-
-bool MobileDeviceManager::GetVideoCaptureDevices(std::vector<Device>* devs) {
- devs->clear();
- std::unique_ptr<webrtc::VideoCaptureModule::DeviceInfo> info(
- webrtc::VideoCaptureFactory::CreateDeviceInfo(0));
- if (!info)
- return false;
-
- uint32_t num_cams = info->NumberOfDevices();
- char id[256];
- char name[256];
- for (uint32_t i = 0; i < num_cams; ++i) {
- if (info->GetDeviceName(i, name, arraysize(name), id, arraysize(id)))
- continue;
- devs->push_back(Device(name, id));
- }
- return true;
-}
-
-DeviceManagerInterface* DeviceManagerFactory::Create() {
- return new MobileDeviceManager();
-}
-
-bool GetUsbId(const Device& device, std::string* usb_id) { return false; }
-
-bool GetUsbVersion(const Device& device, std::string* usb_version) {
- return false;
-}
-
-} // namespace cricket
« no previous file with comments | « webrtc/media/devices/macdevicemanagermm.mm ('k') | webrtc/media/devices/win32deviceinfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698