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

Unified Diff: chrome/browser/system_monitor/media_storage_util.h

Issue 11442057: [Media Galleries] Add an ImageCaptureCore listener for Mac. (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
Index: chrome/browser/system_monitor/media_storage_util.h
diff --git a/chrome/browser/system_monitor/media_storage_util.h b/chrome/browser/system_monitor/media_storage_util.h
index 3db4793f3fe505a4c10796d2a6efb81a760f1342..7abd2096f5b0d5f1ad25526af83c175d54c36ae7 100644
--- a/chrome/browser/system_monitor/media_storage_util.h
+++ b/chrome/browser/system_monitor/media_storage_util.h
@@ -28,6 +28,8 @@ class MediaStorageUtil {
FIXED_MASS_STORAGE,
// A MTP or PTP device.
MTP_OR_PTP,
+ // A Mac ImageCapture device.
+ MAC_IMAGE_CAPTURE,
};
typedef std::set<std::string /*device id*/> DeviceIdSet;
@@ -55,6 +57,10 @@ class MediaStorageUtil {
// (type isn't MTP_OR_PTP).
static bool IsMassStorageDevice(const std::string& device_id);
+ // Returns true if we will be able to create a filesystem for this device.
+ static bool CanCreateFileSystem(const std::string& device_id,
+ const FilePath& path);
+
// Determines if the device is attached to the computer.
static void IsDeviceAttached(const std::string& device_id,
const BoolCallback& callback);

Powered by Google App Engine
This is Rietveld 408576698