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 // chrome::MediaStorageUtil provides information about storage devices attached | 5 // chrome::MediaStorageUtil provides information about storage devices attached |
6 // to the computer. | 6 // to the computer. |
7 | 7 |
8 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_ | 8 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_ |
9 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_ | 9 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_ |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Get a FilePath for the given |device_id|. If the device isn't connected | 65 // Get a FilePath for the given |device_id|. If the device isn't connected |
66 // or isn't a mass storage type, the FilePath will be empty. | 66 // or isn't a mass storage type, the FilePath will be empty. |
67 static void FindDevicePathById(const std::string& device_id, | 67 static void FindDevicePathById(const std::string& device_id, |
68 const FilePathCallback& callback); | 68 const FilePathCallback& callback); |
69 | 69 |
70 private: | 70 private: |
71 // All methods are static, this class should not be instantiated. | 71 // All methods are static, this class should not be instantiated. |
72 MediaStorageUtil(); | 72 MediaStorageUtil(); |
73 | 73 |
74 // A platform specific helper. | 74 // A platform specific helper. |
75 static void FindUSBDeviceById(const std::string& unique_id, | 75 static void FindUSBDeviceById(const std::string& device_id, |
76 const FilePathCallback& callback); | 76 const FilePathCallback& callback); |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(MediaStorageUtil); | 78 DISALLOW_COPY_AND_ASSIGN(MediaStorageUtil); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace chrome | 81 } // namespace chrome |
82 | 82 |
83 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_ | 83 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_STORAGE_UTIL_H_ |
OLD | NEW |