OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H | 5 #ifndef CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H_ |
6 #define CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H | 6 #define CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H_ |
7 | 7 |
8 #include <IOKit/IOKitLib.h> | 8 #include <IOKit/IOKitLib.h> |
9 | 9 |
10 namespace extensions { | 10 namespace extensions { |
11 | 11 |
12 // Determines whether the object from the IO registry is a USB mass storage | 12 // Determines whether the object from the IO registry is a USB mass storage |
13 // device. It does this by reading the ancestors of the object to see if any | 13 // device. It does this by reading the ancestors of the object to see if any |
14 // is of the USB mass-storage class. | 14 // is of the USB mass-storage class. |
15 bool IsUsbDevice(io_object_t disk_obj); | 15 bool IsUsbDevice(io_object_t disk_obj); |
16 | 16 |
17 } // namespace extensions | 17 } // namespace extensions |
18 | 18 |
19 #endif // CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H | 19 #endif // CHROME_COMMON_EXTENSIONS_IMAGE_WRITER_IMAGE_WRITER_UTIL_MAC_H_ |
OLD | NEW |