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

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: Created 7 years, 7 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
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..77e1b4bd67d74c289bf8e92bbd2dffffcc98d7ce 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 SyncExtensionFunction {
Lei Zhang 2013/05/23 16:04:58 If you are going to copy the mediaGalleriesPrivate
Haojian Wu 2013/05/23 16:42:47 Done.
+ public:
+ DECLARE_EXTENSION_FUNCTION("experimental.systemInfo.storage.addWatch",
+ EXPERIMENTAL_SYSTEMINFO_STORAGE_ADDWATCH);
+ SystemInfoStorageAddWatchFunction();
+
+ private:
+ virtual ~SystemInfoStorageAddWatchFunction();
+ 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 SystemInfoStorageRemoveWatchFunction : public SyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("experimental.systemInfo.storage.removeWatch",
+ EXPERIMENTAL_SYSTEMINFO_STORAGE_REMOVEWATCH);
+ SystemInfoStorageRemoveWatchFunction();
+
+ private:
+ virtual ~SystemInfoStorageRemoveWatchFunction();
+ 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_

Powered by Google App Engine
This is Rietveld 408576698