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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
19 #include "chrome/renderer/origin_trials/origin_trial_key_manager.h" | |
19 #include "content/public/renderer/content_renderer_client.h" | 20 #include "content/public/renderer/content_renderer_client.h" |
20 #include "ipc/ipc_channel_proxy.h" | 21 #include "ipc/ipc_channel_proxy.h" |
21 #include "v8/include/v8.h" | 22 #include "v8/include/v8.h" |
22 | 23 |
23 class ChromeRenderProcessObserver; | 24 class ChromeRenderProcessObserver; |
24 #if defined(ENABLE_PRINT_PREVIEW) | 25 #if defined(ENABLE_PRINT_PREVIEW) |
25 class ChromePDFPrintClient; | 26 class ChromePDFPrintClient; |
26 #endif | 27 #endif |
27 class PrescientNetworkingDispatcher; | 28 class PrescientNetworkingDispatcher; |
28 #if defined(ENABLE_SPELLCHECK) | 29 #if defined(ENABLE_SPELLCHECK) |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 void AddImageContextMenuProperties( | 150 void AddImageContextMenuProperties( |
150 const blink::WebURLResponse& response, | 151 const blink::WebURLResponse& response, |
151 std::map<std::string, std::string>* properties) override; | 152 std::map<std::string, std::string>* properties) override; |
152 void DidInitializeServiceWorkerContextOnWorkerThread( | 153 void DidInitializeServiceWorkerContextOnWorkerThread( |
153 v8::Local<v8::Context> context, | 154 v8::Local<v8::Context> context, |
154 const GURL& url) override; | 155 const GURL& url) override; |
155 void WillDestroyServiceWorkerContextOnWorkerThread( | 156 void WillDestroyServiceWorkerContextOnWorkerThread( |
156 v8::Local<v8::Context> context, | 157 v8::Local<v8::Context> context, |
157 const GURL& url) override; | 158 const GURL& url) override; |
158 bool ShouldEnforceWebRTCRoutingPreferences() override; | 159 bool ShouldEnforceWebRTCRoutingPreferences() override; |
159 | 160 |
jam
2016/02/11 21:50:24
nit: no blank line
iclelland
2016/02/12 19:11:33
Done.
| |
161 base::StringPiece GetOriginTrialPublicKey() override; | |
162 | |
160 #if defined(ENABLE_SPELLCHECK) | 163 #if defined(ENABLE_SPELLCHECK) |
161 // Sets a new |spellcheck|. Used for testing only. | 164 // Sets a new |spellcheck|. Used for testing only. |
162 // Takes ownership of |spellcheck|. | 165 // Takes ownership of |spellcheck|. |
163 void SetSpellcheck(SpellCheck* spellcheck); | 166 void SetSpellcheck(SpellCheck* spellcheck); |
164 #endif | 167 #endif |
165 | 168 |
166 #if defined(ENABLE_PLUGINS) | 169 #if defined(ENABLE_PLUGINS) |
167 static blink::WebPlugin* CreatePlugin( | 170 static blink::WebPlugin* CreatePlugin( |
168 content::RenderFrame* render_frame, | 171 content::RenderFrame* render_frame, |
169 blink::WebLocalFrame* frame, | 172 blink::WebLocalFrame* frame, |
(...skipping 29 matching lines...) Expand all Loading... | |
199 #endif | 202 #endif |
200 | 203 |
201 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; | 204 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; |
202 scoped_ptr<web_cache::WebCacheRenderProcessObserver> web_cache_observer_; | 205 scoped_ptr<web_cache::WebCacheRenderProcessObserver> web_cache_observer_; |
203 | 206 |
204 scoped_ptr<network_hints::PrescientNetworkingDispatcher> | 207 scoped_ptr<network_hints::PrescientNetworkingDispatcher> |
205 prescient_networking_dispatcher_; | 208 prescient_networking_dispatcher_; |
206 scoped_ptr<password_manager::CredentialManagerClient> | 209 scoped_ptr<password_manager::CredentialManagerClient> |
207 credential_manager_client_; | 210 credential_manager_client_; |
208 | 211 |
212 OriginTrialKeyManager origin_trial_key_manager_; | |
213 | |
209 #if defined(ENABLE_SPELLCHECK) | 214 #if defined(ENABLE_SPELLCHECK) |
210 scoped_ptr<SpellCheck> spellcheck_; | 215 scoped_ptr<SpellCheck> spellcheck_; |
211 #endif | 216 #endif |
212 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 217 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
213 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 218 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
214 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 219 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
215 #if defined(ENABLE_WEBRTC) | 220 #if defined(ENABLE_WEBRTC) |
216 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; | 221 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; |
217 #endif | 222 #endif |
218 #if defined(ENABLE_PRINT_PREVIEW) | 223 #if defined(ENABLE_PRINT_PREVIEW) |
219 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; | 224 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; |
220 #endif | 225 #endif |
221 #if defined(ENABLE_PLUGINS) | 226 #if defined(ENABLE_PLUGINS) |
222 std::set<std::string> allowed_camera_device_origins_; | 227 std::set<std::string> allowed_camera_device_origins_; |
223 std::set<std::string> allowed_compositor_origins_; | 228 std::set<std::string> allowed_compositor_origins_; |
224 #endif | 229 #endif |
225 }; | 230 }; |
226 | 231 |
227 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 232 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |