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

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: Mihai Review #2 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4596fd414d182f36dc96f0110e38ca322a1c79e8 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
@@ -8,6 +8,7 @@
#include "base/platform_file.h"
#include "chrome/browser/extensions/extension_function.h"
#include "webkit/fileapi/syncable/sync_status_code.h"
+#include "webkit/quota/quota_types.h"
namespace fileapi {
class FileSystemContext;
@@ -37,6 +38,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_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698