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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 14749005: Implement WebPrescientNetworking to trigger preconnect from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "content/public/renderer/content_renderer_client.h" 14 #include "content/public/renderer/content_renderer_client.h"
15 15
16 class ChromeRenderProcessObserver; 16 class ChromeRenderProcessObserver;
17 class ExtensionSet; 17 class ExtensionSet;
18 class PrescientNetworkingDispatcher;
18 class RendererNetPredictor; 19 class RendererNetPredictor;
19 class SpellCheck; 20 class SpellCheck;
20 class SpellCheckProvider; 21 class SpellCheckProvider;
21 22
22 struct ChromeViewHostMsg_GetPluginInfo_Output; 23 struct ChromeViewHostMsg_GetPluginInfo_Output;
23 24
24 namespace extensions { 25 namespace extensions {
25 class Dispatcher; 26 class Dispatcher;
26 class Extension; 27 class Extension;
27 class RendererPermissionsPolicyDelegate; 28 class RendererPermissionsPolicyDelegate;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 v8::Handle<v8::Context> context, 100 v8::Handle<v8::Context> context,
100 int extension_group, 101 int extension_group,
101 int world_id) OVERRIDE; 102 int world_id) OVERRIDE;
102 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, 103 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame,
103 v8::Handle<v8::Context> context, 104 v8::Handle<v8::Context> context,
104 int world_id) OVERRIDE; 105 int world_id) OVERRIDE;
105 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 106 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
106 size_t length) OVERRIDE; 107 size_t length) OVERRIDE;
107 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; 108 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE;
108 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; 109 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE;
110 virtual WebKit::WebPrescientNetworking* GetPrescientNetworking() OVERRIDE;
109 virtual bool ShouldOverridePageVisibilityState( 111 virtual bool ShouldOverridePageVisibilityState(
110 const content::RenderView* render_view, 112 const content::RenderView* render_view,
111 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; 113 WebKit::WebPageVisibilityState* override_state) const OVERRIDE;
112 virtual bool HandleGetCookieRequest(content::RenderView* sender, 114 virtual bool HandleGetCookieRequest(content::RenderView* sender,
113 const GURL& url, 115 const GURL& url,
114 const GURL& first_party_for_cookies, 116 const GURL& first_party_for_cookies,
115 std::string* cookies) OVERRIDE; 117 std::string* cookies) OVERRIDE;
116 virtual bool HandleSetCookieRequest(content::RenderView* sender, 118 virtual bool HandleSetCookieRequest(content::RenderView* sender,
117 const GURL& url, 119 const GURL& url,
118 const GURL& first_party_for_cookies, 120 const GURL& first_party_for_cookies,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 static bool IsNaClAllowed(const GURL& manifest_url, 170 static bool IsNaClAllowed(const GURL& manifest_url,
169 const GURL& app_url, 171 const GURL& app_url,
170 bool is_nacl_unrestricted, 172 bool is_nacl_unrestricted,
171 const extensions::Extension* extension, 173 const extensions::Extension* extension,
172 WebKit::WebPluginParams* params); 174 WebKit::WebPluginParams* params);
173 175
174 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; 176 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_;
175 scoped_ptr<extensions::Dispatcher> extension_dispatcher_; 177 scoped_ptr<extensions::Dispatcher> extension_dispatcher_;
176 scoped_ptr<extensions::RendererPermissionsPolicyDelegate> 178 scoped_ptr<extensions::RendererPermissionsPolicyDelegate>
177 permissions_policy_delegate_; 179 permissions_policy_delegate_;
180 scoped_ptr<PrescientNetworkingDispatcher> prescient_networking_dispatcher_;
178 scoped_ptr<RendererNetPredictor> net_predictor_; 181 scoped_ptr<RendererNetPredictor> net_predictor_;
179 scoped_ptr<SpellCheck> spellcheck_; 182 scoped_ptr<SpellCheck> spellcheck_;
180 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; 183 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_;
181 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; 184 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_;
182 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; 185 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_;
183 }; 186 };
184 187
185 } // namespace chrome 188 } // namespace chrome
186 189
187 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 190 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698