| 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" | |
| 20 #include "content/public/renderer/content_renderer_client.h" | 19 #include "content/public/renderer/content_renderer_client.h" |
| 21 #include "ipc/ipc_channel_proxy.h" | 20 #include "ipc/ipc_channel_proxy.h" |
| 22 #include "v8/include/v8.h" | 21 #include "v8/include/v8.h" |
| 23 | 22 |
| 24 class ChromeRenderProcessObserver; | 23 class ChromeRenderProcessObserver; |
| 25 #if defined(ENABLE_PRINT_PREVIEW) | 24 #if defined(ENABLE_PRINT_PREVIEW) |
| 26 class ChromePDFPrintClient; | 25 class ChromePDFPrintClient; |
| 27 #endif | 26 #endif |
| 28 class PrescientNetworkingDispatcher; | 27 class PrescientNetworkingDispatcher; |
| 29 #if defined(ENABLE_SPELLCHECK) | 28 #if defined(ENABLE_SPELLCHECK) |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 void AddImageContextMenuProperties( | 145 void AddImageContextMenuProperties( |
| 147 const blink::WebURLResponse& response, | 146 const blink::WebURLResponse& response, |
| 148 std::map<std::string, std::string>* properties) override; | 147 std::map<std::string, std::string>* properties) override; |
| 149 void DidInitializeServiceWorkerContextOnWorkerThread( | 148 void DidInitializeServiceWorkerContextOnWorkerThread( |
| 150 v8::Local<v8::Context> context, | 149 v8::Local<v8::Context> context, |
| 151 const GURL& url) override; | 150 const GURL& url) override; |
| 152 void WillDestroyServiceWorkerContextOnWorkerThread( | 151 void WillDestroyServiceWorkerContextOnWorkerThread( |
| 153 v8::Local<v8::Context> context, | 152 v8::Local<v8::Context> context, |
| 154 const GURL& url) override; | 153 const GURL& url) override; |
| 155 bool ShouldEnforceWebRTCRoutingPreferences() override; | 154 bool ShouldEnforceWebRTCRoutingPreferences() override; |
| 156 base::StringPiece GetOriginTrialPublicKey() override; | |
| 157 | 155 |
| 158 #if defined(ENABLE_SPELLCHECK) | 156 #if defined(ENABLE_SPELLCHECK) |
| 159 // Sets a new |spellcheck|. Used for testing only. | 157 // Sets a new |spellcheck|. Used for testing only. |
| 160 // Takes ownership of |spellcheck|. | 158 // Takes ownership of |spellcheck|. |
| 161 void SetSpellcheck(SpellCheck* spellcheck); | 159 void SetSpellcheck(SpellCheck* spellcheck); |
| 162 #endif | 160 #endif |
| 163 | 161 |
| 164 #if defined(ENABLE_PLUGINS) | 162 #if defined(ENABLE_PLUGINS) |
| 165 static blink::WebPlugin* CreatePlugin( | 163 static blink::WebPlugin* CreatePlugin( |
| 166 content::RenderFrame* render_frame, | 164 content::RenderFrame* render_frame, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 195 const extensions::Extension* extension, | 193 const extensions::Extension* extension, |
| 196 blink::WebPluginParams* params); | 194 blink::WebPluginParams* params); |
| 197 #endif | 195 #endif |
| 198 | 196 |
| 199 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; | 197 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; |
| 200 scoped_ptr<web_cache::WebCacheRenderProcessObserver> web_cache_observer_; | 198 scoped_ptr<web_cache::WebCacheRenderProcessObserver> web_cache_observer_; |
| 201 | 199 |
| 202 scoped_ptr<network_hints::PrescientNetworkingDispatcher> | 200 scoped_ptr<network_hints::PrescientNetworkingDispatcher> |
| 203 prescient_networking_dispatcher_; | 201 prescient_networking_dispatcher_; |
| 204 | 202 |
| 205 OriginTrialKeyManager origin_trial_key_manager_; | |
| 206 | |
| 207 #if defined(ENABLE_SPELLCHECK) | 203 #if defined(ENABLE_SPELLCHECK) |
| 208 scoped_ptr<SpellCheck> spellcheck_; | 204 scoped_ptr<SpellCheck> spellcheck_; |
| 209 #endif | 205 #endif |
| 210 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 206 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
| 211 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 207 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
| 212 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 208 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
| 213 #if defined(ENABLE_WEBRTC) | 209 #if defined(ENABLE_WEBRTC) |
| 214 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; | 210 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; |
| 215 #endif | 211 #endif |
| 216 #if defined(ENABLE_PRINT_PREVIEW) | 212 #if defined(ENABLE_PRINT_PREVIEW) |
| 217 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; | 213 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; |
| 218 #endif | 214 #endif |
| 219 #if defined(ENABLE_PLUGINS) | 215 #if defined(ENABLE_PLUGINS) |
| 220 std::set<std::string> allowed_camera_device_origins_; | 216 std::set<std::string> allowed_camera_device_origins_; |
| 221 std::set<std::string> allowed_compositor_origins_; | 217 std::set<std::string> allowed_compositor_origins_; |
| 222 #endif | 218 #endif |
| 223 }; | 219 }; |
| 224 | 220 |
| 225 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 221 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |