summaryrefslogtreecommitdiff
path: root/chromium/chrome/common/extensions/image_writer/image_writer_util_mac.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/common/extensions/image_writer/image_writer_util_mac.h')
-rw-r--r--chromium/chrome/common/extensions/image_writer/image_writer_util_mac.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/chromium/chrome/common/extensions/image_writer/image_writer_util_mac.h b/chromium/chrome/common/extensions/image_writer/image_writer_util_mac.h
new file mode 100644
index 00000000000..ca11e589422
--- /dev/null
+++ b/chromium/chrome/common/extensions/image_writer/image_writer_util_mac.h
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H_
+#define CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H_
+
+#include <IOKit/IOKitLib.h>
+
+#include <string>
+
+namespace extensions {
+
+// Determines whether the specified disk is suitable for writing an image onto.
+// If this function returns true, it also returns other info values; pass
+// null if those values are not wanted.
+bool IsSuitableRemovableStorageDevice(io_object_t disk_obj,
+ std::string* out_bsd_name,
+ uint64_t* out_size_in_bytes,
+ bool* out_removable);
+
+} // namespace extensions
+
+#endif // CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H_