Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SYSTEM_MONITOR_IMAGE_CAPTURE_DEVICE_MANAGER_H_ | |
| 6 #define CHROME_BROWSER_SYSTEM_MONITOR_IMAGE_CAPTURE_DEVICE_MANAGER_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/memory/scoped_nsobject.h" | |
| 12 | |
| 13 @protocol ICDeviceBrowserDelegate; | |
| 14 @class ImageCaptureDevice; | |
| 15 @class ImageCaptureDeviceManagerImpl; | |
| 16 | |
| 17 namespace chrome { | |
| 18 | |
| 19 // This wrapper basically allows the owner to have a scoped_ptr rather than a | |
|
sail
2013/01/04 18:58:56
This comment explaining how a C++ wrapper is not t
Greg Billock
2013/01/04 21:05:50
Yeah, this was bad. Fixed up.
On 2013/01/04 18:58
| |
| 20 // scoped_nsobject, isolating the Objective-C parts of the implementation away. | |
| 21 class ImageCaptureDeviceManager { | |
| 22 public: | |
| 23 ImageCaptureDeviceManager(); | |
| 24 ~ImageCaptureDeviceManager(); | |
| 25 | |
| 26 // The UUIDs passed here are available in the device attach notifications | |
| 27 // given through SystemMonitor. They're gotten by cracking the device ID | |
| 28 // and taking the unique ID output. | |
| 29 static ImageCaptureDevice* deviceForUUID(const std::string& uuid); | |
| 30 | |
| 31 // Returns a weak pointer to the internal ImageCapture interface protocol. | |
| 32 id<ICDeviceBrowserDelegate> device_browser(); | |
| 33 | |
| 34 private: | |
| 35 scoped_nsobject<ImageCaptureDeviceManagerImpl> device_browser_; | |
| 36 }; | |
| 37 | |
| 38 } // namespace chrome | |
| 39 | |
| 40 #endif // CHROME_BROWSER_SYSTEM_MONITOR_IMAGE_CAPTURE_DEVICE_MANAGER_H_ | |
| OLD | NEW |