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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/string16.h" | 14 #include "base/string16.h" |
15 #include "content/public/renderer/content_renderer_client.h" | 15 #include "content/public/renderer/content_renderer_client.h" |
16 | 16 |
17 class ChromeRenderProcessObserver; | 17 class ChromeRenderProcessObserver; |
18 class Extension; | 18 class Extension; |
19 class ExtensionDispatcher; | 19 class ExtensionDispatcher; |
20 class ExtensionSet; | 20 class ExtensionSet; |
21 class RendererHistogramSnapshots; | 21 class RendererHistogramSnapshots; |
22 class RendererNetPredictor; | 22 class RendererNetPredictor; |
23 class SpellCheck; | 23 class SpellCheck; |
24 class SpellCheckProvider; | 24 class SpellCheckProvider; |
25 class VisitedLinkSlave; | 25 class VisitedLinkSlave; |
26 | 26 |
27 struct ChromeViewHostMsg_GetPluginInfo_Status; | 27 struct ChromeViewHostMsg_GetPluginInfo_Status; |
28 | 28 |
| 29 namespace content { |
| 30 class Referrer; |
| 31 } |
| 32 |
| 33 namespace gfx { |
| 34 class Size; |
| 35 } |
| 36 |
29 namespace prerender { | 37 namespace prerender { |
30 class PrerenderDispatcher; | 38 class PrerenderDispatcher; |
31 } | 39 } |
32 | 40 |
33 namespace safe_browsing { | 41 namespace safe_browsing { |
34 class PhishingClassifierFilter; | 42 class PhishingClassifierFilter; |
35 } | 43 } |
36 | 44 |
37 namespace webkit { | 45 namespace webkit { |
38 struct WebPluginInfo; | 46 struct WebPluginInfo; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 v8::Handle<v8::Context> context, | 97 v8::Handle<v8::Context> context, |
90 int extension_group, | 98 int extension_group, |
91 int world_id) OVERRIDE; | 99 int world_id) OVERRIDE; |
92 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, | 100 virtual void WillReleaseScriptContext(WebKit::WebFrame* frame, |
93 v8::Handle<v8::Context> context, | 101 v8::Handle<v8::Context> context, |
94 int world_id) OVERRIDE; | 102 int world_id) OVERRIDE; |
95 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 103 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
96 size_t length) OVERRIDE; | 104 size_t length) OVERRIDE; |
97 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; | 105 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; |
98 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; | 106 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; |
| 107 virtual void NewLinkPrerender(int prerender_id, |
| 108 int render_view_route_id, |
| 109 const GURL& url, |
| 110 const content::Referrer& referrer, |
| 111 const gfx::Size& size) OVERRIDE; |
| 112 virtual void RemovedLinkPrerender(int prerender_id) OVERRIDE; |
| 113 virtual void UnloadedLinkPrerender(int prerender_id) OVERRIDE; |
99 virtual bool ShouldOverridePageVisibilityState( | 114 virtual bool ShouldOverridePageVisibilityState( |
100 const content::RenderView* render_view, | 115 const content::RenderView* render_view, |
101 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; | 116 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; |
102 virtual bool HandleGetCookieRequest(content::RenderView* sender, | 117 virtual bool HandleGetCookieRequest(content::RenderView* sender, |
103 const GURL& url, | 118 const GURL& url, |
104 const GURL& first_party_for_cookies, | 119 const GURL& first_party_for_cookies, |
105 std::string* cookies) OVERRIDE; | 120 std::string* cookies) OVERRIDE; |
106 virtual bool HandleSetCookieRequest(content::RenderView* sender, | 121 virtual bool HandleSetCookieRequest(content::RenderView* sender, |
107 const GURL& url, | 122 const GURL& url, |
108 const GURL& first_party_for_cookies, | 123 const GURL& first_party_for_cookies, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 scoped_ptr<RendererNetPredictor> net_predictor_; | 177 scoped_ptr<RendererNetPredictor> net_predictor_; |
163 scoped_ptr<SpellCheck> spellcheck_; | 178 scoped_ptr<SpellCheck> spellcheck_; |
164 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 179 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
165 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 180 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
166 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 181 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
167 }; | 182 }; |
168 | 183 |
169 } // namespace chrome | 184 } // namespace chrome |
170 | 185 |
171 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 186 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |