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

Unified Diff: chrome/browser/extensions/api/system_info_storage/system_info_storage_api.h

Issue 15815002: [SystemInfo API] Add Storage Watch API Definition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/system_info_storage/system_info_storage_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/system_info_storage/system_info_storage_api.h
diff --git a/chrome/browser/extensions/api/system_info_storage/system_info_storage_api.h b/chrome/browser/extensions/api/system_info_storage/system_info_storage_api.h
index 7a9b8942ff2cb11288ebf07ce238c05715785070..02a4ff88c1015bc2fa01ffd7ea8e24758b2300b4 100644
--- a/chrome/browser/extensions/api/system_info_storage/system_info_storage_api.h
+++ b/chrome/browser/extensions/api/system_info_storage/system_info_storage_api.h
@@ -24,6 +24,50 @@ class SystemInfoStorageGetFunction : public AsyncExtensionFunction {
void OnGetStorageInfoCompleted(const StorageInfo& info, bool success);
};
+class SystemInfoStorageAddWatchFunction : public AsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("experimental.systemInfo.storage.addWatch",
+ EXPERIMENTAL_SYSTEMINFO_STORAGE_ADDWATCH);
+ SystemInfoStorageAddWatchFunction();
+
+ private:
+ virtual ~SystemInfoStorageAddWatchFunction();
+ virtual bool RunImpl() OVERRIDE;
+};
+
+class SystemInfoStorageRemoveWatchFunction : public SyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("experimental.systemInfo.storage.removeWatch",
+ EXPERIMENTAL_SYSTEMINFO_STORAGE_REMOVEWATCH);
+ SystemInfoStorageRemoveWatchFunction();
+
+ private:
+ virtual ~SystemInfoStorageRemoveWatchFunction();
+ virtual bool RunImpl() OVERRIDE;
+};
+
+class SystemInfoStorageGetAllWatchFunction : public SyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("experimental.systemInfo.storage.getAllWatch",
+ EXPERIMENTAL_SYSTEMINFO_STORAGE_GETALLWATCH);
+ SystemInfoStorageGetAllWatchFunction();
+
+ private:
+ virtual ~SystemInfoStorageGetAllWatchFunction();
+ virtual bool RunImpl() OVERRIDE;
+};
+
+class SystemInfoStorageRemoveAllWatchFunction : public SyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("experimental.systemInfo.storage.removeAllWatch",
+ EXPERIMENTAL_SYSTEMINFO_STORAGE_REMOVEALLWATCH);
+ SystemInfoStorageRemoveAllWatchFunction();
+
+ private:
+ virtual ~SystemInfoStorageRemoveAllWatchFunction();
+ virtual bool RunImpl() OVERRIDE;
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_STORAGE_SYSTEM_INFO_STORAGE_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/system_info_storage/system_info_storage_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698