Index: chrome/renderer/chrome_render_thread_observer.h |
diff --git a/chrome/renderer/chrome_render_thread_observer.h b/chrome/renderer/chrome_render_thread_observer.h |
index d93aec0e0122f0c53f43af4813ec886f31eb9ab8..cf22ad195264e6fe9d43747302767940d9d765e9 100644 |
--- a/chrome/renderer/chrome_render_thread_observer.h |
+++ b/chrome/renderer/chrome_render_thread_observer.h |
@@ -27,6 +27,10 @@ namespace content { |
class ResourceDispatcherDelegate; |
} |
+namespace network_hints { |
+class PrescientNetworkingDispatcher; |
+} |
+ |
// This class filters the incoming control messages (i.e. ones not destined for |
// a RenderView) for Chrome specific messages that the content layer doesn't |
// happen. If a few messages are related, they should probably have their own |
@@ -43,6 +47,11 @@ class ChromeRenderThreadObserver : public content::RenderThreadObserver, |
// |ChromeRenderThreadObserver|. |
const RendererContentSettingRules* content_setting_rules() const; |
+ network_hints::PrescientNetworkingDispatcher* |
+ prescient_networking_dispatcher() { |
+ return prescient_networking_dispatcher_.get(); |
+ } |
+ |
private: |
// Initializes field trial state change observation and notifies the browser |
// of any field trials that might have already been activated. |
@@ -50,6 +59,7 @@ class ChromeRenderThreadObserver : public content::RenderThreadObserver, |
// content::RenderThreadObserver: |
bool OnControlMessageReceived(const IPC::Message& message) override; |
+ void OnRenderProcessShutdown() override; |
// base::FieldTrialList::Observer: |
void OnFieldTrialGroupFinalized(const std::string& trial_name, |
@@ -68,6 +78,9 @@ class ChromeRenderThreadObserver : public content::RenderThreadObserver, |
RendererContentSettingRules content_setting_rules_; |
chrome_variations::ChildProcessFieldTrialSyncer field_trial_syncer_; |
+ std::unique_ptr<network_hints::PrescientNetworkingDispatcher> |
+ prescient_networking_dispatcher_; |
+ |
base::WeakPtrFactory<ChromeRenderThreadObserver> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(ChromeRenderThreadObserver); |