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_ |