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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 2785523002: Reduce/remove usage of BrowserThread in content/browser/loader. (Closed)
Patch Set: Fix unittests redness Created 3 years, 9 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: content/browser/loader/resource_dispatcher_host_impl.h
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
index f039aa13b1b9dc2e80ffd954a75f47e48951749c..5e1857c3de6c43fb166b0f70c731343b1f3821db 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -26,6 +26,7 @@
#include "base/observer_list.h"
#include "base/time/time.h"
#include "content/browser/loader/global_routing_id.h"
+#include "content/browser/loader/loader_globals.h"
#include "content/browser/loader/resource_loader_delegate.h"
#include "content/common/content_export.h"
#include "content/common/url_loader.mojom.h"
@@ -91,7 +92,9 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// Work on moving creation of download handlers out of
// ResourceDispatcherHostImpl.
ResourceDispatcherHostImpl(
- CreateDownloadHandlerIntercept download_handler_intercept);
+ CreateDownloadHandlerIntercept download_handler_intercept,
+ const scoped_refptr<base::SingleThreadTaskRunner>& main_thread_runner,
+ const scoped_refptr<base::SingleThreadTaskRunner>& io_thread_runner);
ResourceDispatcherHostImpl();
~ResourceDispatcherHostImpl() override;
@@ -757,6 +760,9 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// Points to the registered download handler intercept.
CreateDownloadHandlerIntercept create_download_handler_intercept_;
+ // Points to the global instance of the LoaderGlobals class.
+ std::unique_ptr<LoaderGlobals> loader_globals_;
+
DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
};

Powered by Google App Engine
This is Rietveld 408576698