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

Unified Diff: webkit/appcache/appcache_response.h

Issue 8399019: base::Bind usage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
« no previous file with comments | « no previous file | webkit/appcache/appcache_response.cc » ('j') | webkit/appcache/appcache_response.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_response.h
===================================================================
--- webkit/appcache/appcache_response.h (revision 107404)
+++ webkit/appcache/appcache_response.h (working copy)
@@ -8,7 +8,7 @@
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/task.h"
+#include "base/memory/weak_ptr.h"
#include "googleurl/src/gurl.h"
#include "net/base/completion_callback.h"
#include "net/http/http_response_info.h"
@@ -100,8 +100,6 @@
int64 response_id() const { return response_id_; }
protected:
- friend class ScopedRunnableMethodFactory<AppCacheResponseIO>;
-
template <class T>
class EntryCallback : public net::CancelableOldCompletionCallback<T> {
public:
@@ -137,7 +135,7 @@
scoped_refptr<net::IOBuffer> buffer_;
int buffer_len_;
net::OldCompletionCallback* user_callback_;
- ScopedRunnableMethodFactory<AppCacheResponseIO> method_factory_;
+ base::WeakPtrFactory<AppCacheResponseIO> weak_factory_;
private:
void OnRawIOComplete(int result);
« no previous file with comments | « no previous file | webkit/appcache/appcache_response.cc » ('j') | webkit/appcache/appcache_response.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698