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

Unified Diff: content/child/resource_dispatcher.h

Issue 2494493003: Fix ResourceSchedulingFilter crash after ResourceDispatcher deleted (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | content/child/resource_scheduling_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.h
diff --git a/content/child/resource_dispatcher.h b/content/child/resource_dispatcher.h
index 6646e3e42909d59b24abcb17eacfd43f292c3ecc..7c8475587b12b298a15f9d27a36d4f39ab0ff655 100644
--- a/content/child/resource_dispatcher.h
+++ b/content/child/resource_dispatcher.h
@@ -146,6 +146,10 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
void SetResourceSchedulingFilter(
scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter);
+ base::WeakPtr<ResourceDispatcher> GetWeakPtr() {
+ return weak_factory_.GetWeakPtr();
+ }
+
private:
friend class URLResponseBodyConsumer;
friend class ResourceDispatcherTest;
« no previous file with comments | « no previous file | content/child/resource_scheduling_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698