OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEMINFO_STORAGE_STORAGE_INFO_PROVIDER_H
_ |
| 5 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEMINFO_STORAGE_STORAGE_INFO_PROVIDER_H
_ |
| 6 |
| 7 #include "chrome/common/extensions/api/experimental_systeminfo_storage.h" |
| 8 |
| 9 namespace extensions { |
| 10 namespace systeminfo { |
| 11 // Unknown storage type. |
| 12 extern const char kStorageTypeUnknown[]; |
| 13 // Hard disk. |
| 14 extern const char kStorageTypeHardDisk[]; |
| 15 // Removable storage, e.g. USB device, flash card reader. |
| 16 extern const char kStorageTypeRemovable[]; |
| 17 } // namespace systeminfo |
| 18 |
| 19 // An interface for retrieving storage information on different platforms. |
| 20 class StorageInfoProvider { |
| 21 public: |
| 22 // Return a StorageInfoProvider instance. The caller is responsible for |
| 23 // destroying it. |
| 24 static StorageInfoProvider* Create(); |
| 25 |
| 26 virtual ~StorageInfoProvider() {} |
| 27 |
| 28 // Return true if succeed to get storage information, other return fasle. |
| 29 // Should be implemented on different platforms. |
| 30 virtual bool GetStorageInfo( |
| 31 api::experimental_systeminfo_storage::StorageInfo* info) = 0; |
| 32 }; |
| 33 |
| 34 } // namespace extensions |
| 35 |
| 36 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEMINFO_STORAGE_STORAGE_INFO_PROVIDE
R_H_ |
OLD | NEW |