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

Side by Side Diff: chrome/browser/extensions/api/systeminfo_storage/storage_info_provider.h

Issue 10824232: Add systeminfo.storage API implementation skeleton (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add StorageInfoProvder impl on Windows Created 8 years, 4 months 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698