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

Unified Diff: webkit/plugins/ppapi/quota_file_io.h

Issue 8231004: Remaining cleanup (base::Bind): Replacing FileUtilProxy calls with new callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: got it building Created 9 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: webkit/plugins/ppapi/quota_file_io.h
diff --git a/webkit/plugins/ppapi/quota_file_io.h b/webkit/plugins/ppapi/quota_file_io.h
index 02abdd199773cf872cbc7701964082be2a48f4a2..a95451458137951700880dcf03c6cc435b0c15b8 100644
--- a/webkit/plugins/ppapi/quota_file_io.h
+++ b/webkit/plugins/ppapi/quota_file_io.h
@@ -7,8 +7,8 @@
#include <deque>
+#include "base/callback.h"
#include "base/file_util_proxy.h"
-#include "base/memory/scoped_callback_factory.h"
#include "base/memory/weak_ptr.h"
#include "base/platform_file.h"
#include "googleurl/src/gurl.h"
@@ -48,13 +48,13 @@ class QuotaFileIO {
bool Write(int64_t offset,
const char* buffer,
int32_t bytes_to_write,
- WriteCallback* callback);
+ const WriteCallback& callback);
bool WillWrite(int64_t offset,
int32_t bytes_to_write,
- WriteCallback* callback);
+ const WriteCallback& callback);
- bool SetLength(int64_t length, StatusCallback* callback);
- bool WillSetLength(int64_t length, StatusCallback* callback);
+ bool SetLength(int64_t length, const StatusCallback& callback);
+ bool WillSetLength(int64_t length, const StatusCallback& callback);
// Returns the plugin delegate or NULL if the resource has outlived the
// instance.
@@ -104,7 +104,6 @@ class QuotaFileIO {
int64_t max_written_offset_;
int inflight_operations_;
- base::ScopedCallbackFactory<QuotaFileIO> callback_factory_;
base::WeakPtrFactory<QuotaFileIO> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(QuotaFileIO);
};

Powered by Google App Engine
This is Rietveld 408576698