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

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

Issue 18578008: [SystemInfo API] Move Storage API out of experimental namespace and rename to the "system" namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix PermissionTest unittest. Created 7 years, 5 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
deleted file mode 100644
index 7d99e844cfc5f6bbda8e2ca7e09b8a2c11ed0037..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/system_info_storage/system_info_storage_api.h
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_STORAGE_SYSTEM_INFO_STORAGE_API_H_
-#define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_STORAGE_SYSTEM_INFO_STORAGE_API_H_
-
-#include "chrome/browser/extensions/api/system_info_storage/storage_info_provider.h"
-#include "chrome/browser/extensions/extension_function.h"
-#include "chrome/browser/storage_monitor/storage_monitor.h"
-
-namespace extensions {
-
-// Implementation of the systeminfo.storage.get API. It is an asynchronous
-// call relative to browser UI thread.
-class SystemInfoStorageGetFunction : public AsyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("experimental.systemInfo.storage.get",
- EXPERIMENTAL_SYSTEMINFO_STORAGE_GET)
- SystemInfoStorageGetFunction();
-
- private:
- virtual ~SystemInfoStorageGetFunction();
- virtual bool RunImpl() OVERRIDE;
-
- void OnGetStorageInfoCompleted(bool success);
-};
-
-class SystemInfoStorageEjectDeviceFunction
- : public AsyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("experimental.systemInfo.storage.ejectDevice",
- EXPERIMENTAL_SYSTEMINFO_STORAGE_EJECTDEVICE);
-
- protected:
- virtual ~SystemInfoStorageEjectDeviceFunction();
-
- // AsyncExtensionFunction overrides.
- virtual bool RunImpl() OVERRIDE;
-
- private:
- void OnStorageMonitorInit(const std::string& transient_device_id);
-
- // Eject device request handler.
- void HandleResponse(chrome::StorageMonitor::EjectStatus status);
-};
-
-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_

Powered by Google App Engine
This is Rietveld 408576698