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

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

Issue 2004453002: Add a Dns preresolve interface in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@predictor_dns_browsertest
Patch Set: Created 4 years, 7 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 3d960faa85ad57391bc7d6a6eed2b724bdf6ff52..a0adbb1af1e90e72186c0febc6193c2718d69055 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -69,6 +69,7 @@ class NavigationURLLoaderImplCore;
class RenderFrameHostImpl;
class ResourceContext;
class ResourceDispatcherHostDelegate;
+class ResourceHintsController;
class ResourceMessageDelegate;
class ResourceMessageFilter;
class ResourceRequestInfoImpl;
@@ -318,6 +319,10 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// or experiment status. For unit tests only.
void EnableStaleWhileRevalidateForTesting();
+ ResourceHintsController* resource_hints_controller() {
+ return resource_hints_controller_.get();
+ }
+
private:
friend class LoaderIOThreadNotifier;
friend class ResourceDispatcherHostTest;
@@ -659,6 +664,8 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
std::unique_ptr<ResourceScheduler> scheduler_;
+ std::unique_ptr<ResourceHintsController> resource_hints_controller_;
+
// Allows tests to use a mock CertStore. If set, the CertStore must
// outlive this ResourceDispatcherHostImpl.
CertStore* cert_store_for_testing_;

Powered by Google App Engine
This is Rietveld 408576698