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

Unified Diff: content/common/resource_dispatcher.h

Issue 8556001: Convert NewRunnableFunction/NewRunnableMethod calls to use base::Bind(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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: content/common/resource_dispatcher.h
diff --git a/content/common/resource_dispatcher.h b/content/common/resource_dispatcher.h
index 220028218244e75d4746401ae601d7937bdd1ff3..312234846bd1e2abfeca4fe653fc5b8c4959afbc 100644
--- a/content/common/resource_dispatcher.h
+++ b/content/common/resource_dispatcher.h
@@ -13,8 +13,8 @@
#include "base/hash_tables.h"
#include "base/memory/linked_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/shared_memory.h"
-#include "base/task.h"
#include "content/common/content_export.h"
#include "ipc/ipc_channel.h"
#include "webkit/glue/resource_loader_bridge.h"
@@ -154,7 +154,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Channel::Listener {
// All pending requests issued to the host
PendingRequestList pending_requests_;
- ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_;
+ base::WeakPtrFactory<ResourceDispatcher> method_factory_;
James Hawkins 2011/11/14 17:57:06 weak_factory_
dcheng 2011/11/14 20:47:49 Done.
content::ResourceDispatcherDelegate* delegate_;

Powered by Google App Engine
This is Rietveld 408576698