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

Side by Side Diff: chrome/browser/extensions/api/system_storage/system_storage_api.h

Issue 64273006: Move ExtensionFunction to the extensions component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_EXTENSIONS_API_SYSTEM_STORAGE_SYSTEM_STORAGE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_STORAGE_SYSTEM_STORAGE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_STORAGE_SYSTEM_STORAGE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_STORAGE_SYSTEM_STORAGE_API_H_
7 7
8 #include "chrome/browser/extensions/api/system_storage/storage_info_provider.h" 8 #include "chrome/browser/extensions/api/system_storage/storage_info_provider.h"
9 #include "chrome/browser/extensions/extension_function.h"
10 #include "chrome/browser/storage_monitor/storage_monitor.h" 9 #include "chrome/browser/storage_monitor/storage_monitor.h"
10 #include "extensions/browser/extension_function.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 // Implementation of the systeminfo.storage.get API. It is an asynchronous 14 // Implementation of the systeminfo.storage.get API. It is an asynchronous
15 // call relative to browser UI thread. 15 // call relative to browser UI thread.
16 class SystemStorageGetInfoFunction : public AsyncExtensionFunction { 16 class SystemStorageGetInfoFunction : public AsyncExtensionFunction {
17 public: 17 public:
18 DECLARE_EXTENSION_FUNCTION("system.storage.getInfo", SYSTEM_STORAGE_GETINFO); 18 DECLARE_EXTENSION_FUNCTION("system.storage.getInfo", SYSTEM_STORAGE_GETINFO);
19 SystemStorageGetInfoFunction(); 19 SystemStorageGetInfoFunction();
20 20
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void OnStorageMonitorInit(const std::string& transient_id); 55 void OnStorageMonitorInit(const std::string& transient_id);
56 void OnQueryCompleted(const std::string& transient_id, 56 void OnQueryCompleted(const std::string& transient_id,
57 double available_capacity); 57 double available_capacity);
58 virtual ~SystemStorageGetAvailableCapacityFunction(); 58 virtual ~SystemStorageGetAvailableCapacityFunction();
59 virtual bool RunImpl() OVERRIDE; 59 virtual bool RunImpl() OVERRIDE;
60 }; 60 };
61 61
62 } // namespace extensions 62 } // namespace extensions
63 63
64 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_STORAGE_SYSTEM_STORAGE_API_H_ 64 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_STORAGE_SYSTEM_STORAGE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698