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

Unified Diff: webkit/fileapi/syncable/canned_syncable_file_system.h

Issue 11266031: Add Quota related method to CannedSyncableFileSystem for testing (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
« no previous file with comments | « no previous file | webkit/fileapi/syncable/canned_syncable_file_system.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/syncable/canned_syncable_file_system.h
diff --git a/webkit/fileapi/syncable/canned_syncable_file_system.h b/webkit/fileapi/syncable/canned_syncable_file_system.h
index 6c94b015e2f7b628464492c7d0b651de9374931b..3a693285b31c5fee77e93b19f20a0b473f0a1266 100644
--- a/webkit/fileapi/syncable/canned_syncable_file_system.h
+++ b/webkit/fileapi/syncable/canned_syncable_file_system.h
@@ -14,6 +14,7 @@
#include "webkit/fileapi/file_system_types.h"
#include "webkit/fileapi/local_file_system_test_helper.h"
#include "webkit/fileapi/syncable/sync_status_code.h"
+#include "webkit/quota/quota_types.h"
namespace base {
class MessageLoopProxy;
@@ -94,9 +95,12 @@ class CannedSyncableFileSystem {
int64 Write(net::URLRequestContext* url_request_context,
const FileSystemURL& url, const GURL& blob_url);
- // Pruges the file system local storage.
+ // Purges the file system local storage.
base::PlatformFileError DeleteFileSystem();
+ // Retrieves the quota and usage.
+ quota::QuotaStatusCode GetUsageAndQuota(int64* usage, int64* quota);
+
// Returns new FileSystemOperation.
FileSystemOperation* NewOperation();
@@ -126,6 +130,9 @@ class CannedSyncableFileSystem {
const FileSystemURL& url,
const GURL& blob_url,
const WriteCallback& callback);
+ void DoGetUsageAndQuota(int64* usage,
+ int64* quota,
+ const quota::StatusCallback& callback);
// Callbacks.
void DidOpenFileSystem(base::PlatformFileError result,
« no previous file with comments | « no previous file | webkit/fileapi/syncable/canned_syncable_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698