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

Unified Diff: chrome/browser/extensions/api/sync_file_system/sync_file_system_api.h

Issue 11146034: Add GetUsageAndQuota() to Syncable API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/sync_file_system/sync_file_system_api.h
diff --git a/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.h b/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.h
index d5c664ce368eae9f9864624c8cf5fb133d7f10b7..7df14b3fc96d49a0a7b79d477e9e6bdb202934e0 100644
--- a/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.h
+++ b/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.h
@@ -37,6 +37,21 @@ class SyncFileSystemRequestFileSystemFunction
const GURL& root_url);
};
+class SyncFileSystemGetUsageAndQuotaFunction
+ : public AsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION_NAME("syncFileSystem.getUsageAndQuota");
+
+ protected:
+ virtual ~SyncFileSystemGetUsageAndQuotaFunction() {}
+ virtual bool RunImpl() OVERRIDE;
+
+ private:
+ void DidGetUsageAndQuota(quota::QuotaStatusCode status,
+ int64 usage,
+ int64 quota);
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_

Powered by Google App Engine
This is Rietveld 408576698