OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_MANAGER_H_ |
6 #define CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_MANAGER_H_ | 6 #define CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_MANAGER_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 // and taking the unique ID output. | 31 // and taking the unique ID output. |
32 static ImageCaptureDevice* deviceForUUID(const std::string& uuid); | 32 static ImageCaptureDevice* deviceForUUID(const std::string& uuid); |
33 | 33 |
34 // Returns a weak pointer to the internal ImageCapture interface protocol. | 34 // Returns a weak pointer to the internal ImageCapture interface protocol. |
35 id<ICDeviceBrowserDelegate> device_browser(); | 35 id<ICDeviceBrowserDelegate> device_browser(); |
36 | 36 |
37 // Sets the receiver for device attach/detach notifications. | 37 // Sets the receiver for device attach/detach notifications. |
38 // TODO(gbillock): Move this to be a constructor argument. | 38 // TODO(gbillock): Move this to be a constructor argument. |
39 void SetNotifications(StorageMonitor::Receiver* notifications); | 39 void SetNotifications(StorageMonitor::Receiver* notifications); |
40 | 40 |
| 41 // Eject the given device. The ID passed is not the device ID, but the |
| 42 // ImageCapture UUID. |
| 43 void EjectDevice(const std::string& uuid, |
| 44 base::Callback<void(StorageMonitor::EjectStatus)> callback); |
| 45 |
41 private: | 46 private: |
42 base::scoped_nsobject<ImageCaptureDeviceManagerImpl> device_browser_; | 47 base::scoped_nsobject<ImageCaptureDeviceManagerImpl> device_browser_; |
43 }; | 48 }; |
44 | 49 |
45 } // namespace chrome | 50 } // namespace chrome |
46 | 51 |
47 #endif // CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_MANAGER_H_ | 52 #endif // CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_MANAGER_H_ |
OLD | NEW |