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

Unified Diff: webkit/fileapi/file_system_operation.h

Issue 8070001: Use base::Callback in Quota related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pass as cref, and fix style. Created 9 years, 3 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: webkit/fileapi/file_system_operation.h
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h
index b38633a99fe4fe7b8bb8549f6c4510692253fa05..0435a0ae09a8730cb0a79a75528ff59060d65029 100644
--- a/webkit/fileapi/file_system_operation.h
+++ b/webkit/fileapi/file_system_operation.h
@@ -111,7 +111,7 @@ class FileSystemOperation {
void GetUsageAndQuotaThenCallback(
const GURL& origin_url,
- quota::QuotaManager::GetUsageAndQuotaCallback* callback);
+ const quota::QuotaManager::GetUsageAndQuotaCallback& callback);
void DelayedCreateFileForQuota(quota::QuotaStatusCode status,
int64 usage, int64 quota);
@@ -240,6 +240,7 @@ class FileSystemOperation {
FileSystemOperationContext file_system_operation_context_;
+ base::WeakPtrFactory<FileSystemOperation> weak_factory_;
base::ScopedCallbackFactory<FileSystemOperation> callback_factory_;
scoped_ptr<ScopedQuotaUtilHelper> quota_util_helper_;

Powered by Google App Engine
This is Rietveld 408576698