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

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

Issue 10876041: Polish the SystemInfoProvider template code and refactor StorageInfoProvider based on it (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use string16 instead of wstring to avoid Presubmit warning Created 8 years, 4 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 f925f170a7674782aab2f49754b8feccd456c6c8..eb9ccaa0883420d3c458ae55f322e33a0a4f626d 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
@@ -5,6 +5,7 @@
#define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_STORAGE_SYSTEM_INFO_STORAGE_API_H_
#include "chrome/browser/extensions/extension_function.h"
+#include "chrome/common/extensions/api/experimental_system_info_storage.h"
namespace extensions {
@@ -13,20 +14,15 @@ namespace extensions {
class SystemInfoStorageGetFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION_NAME("experimental.systemInfo.storage.get");
-
SystemInfoStorageGetFunction();
private:
virtual ~SystemInfoStorageGetFunction();
-
- // AsyncExtensionFunction implementation.
virtual bool RunImpl() OVERRIDE;
- // Called on FILE thread to get storage information
- void WorkOnFileThread();
-
- // Responds the result back to UI thread
- void RespondOnUIThread(bool success);
+ void OnGetStorageInfoCompleted(
+ const api::experimental_system_info_storage::StorageInfo& info,
+ bool success);
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698