OLD | NEW |
---|---|
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 components { | 25 namespace components { |
25 class VisitedLinkSlave; | 26 class VisitedLinkSlave; |
26 } | 27 } |
27 | 28 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 v8::Handle<v8::Context> context, | 99 v8::Handle<v8::Context> context, |
99 int extension_group, | 100 int extension_group, |
100 int world_id) OVERRIDE; | 101 int world_id) OVERRIDE; |
101 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, | 102 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, |
102 v8::Handle<v8::Context> context, | 103 v8::Handle<v8::Context> context, |
103 int world_id) OVERRIDE; | 104 int world_id) OVERRIDE; |
104 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 105 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
105 size_t length) OVERRIDE; | 106 size_t length) OVERRIDE; |
106 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; | 107 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; |
107 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; | 108 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; |
109 virtual WebKit::WebPrescientNetworking* PrescientNetworking() OVERRIDE; | |
Nico
2013/05/16 04:35:44
style guide says that functions should be named li
kouhei (in TOK)
2013/05/16 07:02:50
I will change his to getPrescientNetworking().
Nico
2013/05/16 18:26:17
chromium style is LikeThis (i.e. a capital 'G') (o
kouhei (in TOK)
2013/05/17 01:48:06
Done.
| |
108 virtual bool ShouldOverridePageVisibilityState( | 110 virtual bool ShouldOverridePageVisibilityState( |
109 const content::RenderView* render_view, | 111 const content::RenderView* render_view, |
110 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; | 112 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; |
111 virtual bool HandleGetCookieRequest(content::RenderView* sender, | 113 virtual bool HandleGetCookieRequest(content::RenderView* sender, |
112 const GURL& url, | 114 const GURL& url, |
113 const GURL& first_party_for_cookies, | 115 const GURL& first_party_for_cookies, |
114 std::string* cookies) OVERRIDE; | 116 std::string* cookies) OVERRIDE; |
115 virtual bool HandleSetCookieRequest(content::RenderView* sender, | 117 virtual bool HandleSetCookieRequest(content::RenderView* sender, |
116 const GURL& url, | 118 const GURL& url, |
117 const GURL& first_party_for_cookies, | 119 const GURL& first_party_for_cookies, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
165 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type, | 167 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type, |
166 const webkit::WebPluginInfo& plugin); | 168 const webkit::WebPluginInfo& plugin); |
167 static bool IsNaClAllowed(const GURL& manifest_url, | 169 static bool IsNaClAllowed(const GURL& manifest_url, |
168 const GURL& app_url, | 170 const GURL& app_url, |
169 bool is_nacl_unrestricted, | 171 bool is_nacl_unrestricted, |
170 const extensions::Extension* extension, | 172 const extensions::Extension* extension, |
171 WebKit::WebPluginParams* params); | 173 WebKit::WebPluginParams* params); |
172 | 174 |
173 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; | 175 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; |
174 scoped_ptr<extensions::Dispatcher> extension_dispatcher_; | 176 scoped_ptr<extensions::Dispatcher> extension_dispatcher_; |
177 scoped_ptr<PrescientNetworkingDispatcher> prescient_networking_dispatcher_; | |
175 scoped_ptr<RendererNetPredictor> net_predictor_; | 178 scoped_ptr<RendererNetPredictor> net_predictor_; |
176 scoped_ptr<SpellCheck> spellcheck_; | 179 scoped_ptr<SpellCheck> spellcheck_; |
177 scoped_ptr<components::VisitedLinkSlave> visited_link_slave_; | 180 scoped_ptr<components::VisitedLinkSlave> visited_link_slave_; |
178 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 181 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
179 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 182 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
180 }; | 183 }; |
181 | 184 |
182 } // namespace chrome | 185 } // namespace chrome |
183 | 186 |
184 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 187 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |