| 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 <memory> | 11 #include <memory> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
| 17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
| 18 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
| 19 #include "chrome/renderer/media/chrome_key_systems_provider.h" |
| 19 #include "components/rappor/public/interfaces/rappor_recorder.mojom.h" | 20 #include "components/rappor/public/interfaces/rappor_recorder.mojom.h" |
| 20 #include "components/spellcheck/spellcheck_build_features.h" | 21 #include "components/spellcheck/spellcheck_build_features.h" |
| 21 #include "content/public/renderer/content_renderer_client.h" | 22 #include "content/public/renderer/content_renderer_client.h" |
| 22 #include "extensions/features/features.h" | 23 #include "extensions/features/features.h" |
| 23 #include "ipc/ipc_channel_proxy.h" | 24 #include "ipc/ipc_channel_proxy.h" |
| 24 #include "media/media_features.h" | 25 #include "media/media_features.h" |
| 25 #include "ppapi/features/features.h" | 26 #include "ppapi/features/features.h" |
| 26 #include "printing/features/features.h" | 27 #include "printing/features/features.h" |
| 27 #include "v8/include/v8.h" | 28 #include "v8/include/v8.h" |
| 28 | 29 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 bool ShouldReportDetailedMessageForSource( | 156 bool ShouldReportDetailedMessageForSource( |
| 156 const base::string16& source) const override; | 157 const base::string16& source) const override; |
| 157 bool ShouldGatherSiteIsolationStats() const override; | 158 bool ShouldGatherSiteIsolationStats() const override; |
| 158 blink::WebWorkerContentSettingsClientProxy* | 159 blink::WebWorkerContentSettingsClientProxy* |
| 159 CreateWorkerContentSettingsClientProxy(content::RenderFrame* render_frame, | 160 CreateWorkerContentSettingsClientProxy(content::RenderFrame* render_frame, |
| 160 blink::WebFrame* frame) override; | 161 blink::WebFrame* frame) override; |
| 161 bool AllowPepperMediaStreamAPI(const GURL& url) override; | 162 bool AllowPepperMediaStreamAPI(const GURL& url) override; |
| 162 void AddSupportedKeySystems( | 163 void AddSupportedKeySystems( |
| 163 std::vector<std::unique_ptr<::media::KeySystemProperties>>* key_systems) | 164 std::vector<std::unique_ptr<::media::KeySystemProperties>>* key_systems) |
| 164 override; | 165 override; |
| 166 bool IsKeySystemsUpdateNeeded() override; |
| 165 bool IsPluginAllowedToUseDevChannelAPIs() override; | 167 bool IsPluginAllowedToUseDevChannelAPIs() override; |
| 166 bool IsPluginAllowedToUseCameraDeviceAPI(const GURL& url) override; | 168 bool IsPluginAllowedToUseCameraDeviceAPI(const GURL& url) override; |
| 167 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override; | 169 bool IsPluginAllowedToUseCompositorAPI(const GURL& url) override; |
| 168 content::BrowserPluginDelegate* CreateBrowserPluginDelegate( | 170 content::BrowserPluginDelegate* CreateBrowserPluginDelegate( |
| 169 content::RenderFrame* render_frame, | 171 content::RenderFrame* render_frame, |
| 170 const std::string& mime_type, | 172 const std::string& mime_type, |
| 171 const GURL& original_url) override; | 173 const GURL& original_url) override; |
| 172 void RecordRappor(const std::string& metric, | 174 void RecordRappor(const std::string& metric, |
| 173 const std::string& sample) override; | 175 const std::string& sample) override; |
| 174 void RecordRapporURL(const std::string& metric, const GURL& url) override; | 176 void RecordRapporURL(const std::string& metric, const GURL& url) override; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 #endif | 235 #endif |
| 234 | 236 |
| 235 rappor::mojom::RapporRecorderPtr rappor_recorder_; | 237 rappor::mojom::RapporRecorderPtr rappor_recorder_; |
| 236 | 238 |
| 237 std::unique_ptr<ChromeRenderThreadObserver> chrome_observer_; | 239 std::unique_ptr<ChromeRenderThreadObserver> chrome_observer_; |
| 238 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; | 240 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; |
| 239 | 241 |
| 240 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> | 242 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> |
| 241 prescient_networking_dispatcher_; | 243 prescient_networking_dispatcher_; |
| 242 | 244 |
| 245 chrome::ChromeKeySystemsProvider key_systems_provider_; |
| 246 |
| 243 #if BUILDFLAG(ENABLE_SPELLCHECK) | 247 #if BUILDFLAG(ENABLE_SPELLCHECK) |
| 244 std::unique_ptr<SpellCheck> spellcheck_; | 248 std::unique_ptr<SpellCheck> spellcheck_; |
| 245 #endif | 249 #endif |
| 246 std::unique_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 250 std::unique_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
| 247 std::unique_ptr<subresource_filter::UnverifiedRulesetDealer> | 251 std::unique_ptr<subresource_filter::UnverifiedRulesetDealer> |
| 248 subresource_filter_ruleset_dealer_; | 252 subresource_filter_ruleset_dealer_; |
| 249 std::unique_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 253 std::unique_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
| 250 #if BUILDFLAG(ENABLE_WEBRTC) | 254 #if BUILDFLAG(ENABLE_WEBRTC) |
| 251 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; | 255 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; |
| 252 #endif | 256 #endif |
| (...skipping 13 matching lines...) Expand all Loading... |
| 266 // Observes module load and unload events and notifies the ModuleDatabase in | 270 // Observes module load and unload events and notifies the ModuleDatabase in |
| 267 // the browser process. | 271 // the browser process. |
| 268 std::unique_ptr<ModuleWatcher> module_watcher_; | 272 std::unique_ptr<ModuleWatcher> module_watcher_; |
| 269 mojom::ModuleEventSinkPtr module_event_sink_; | 273 mojom::ModuleEventSinkPtr module_event_sink_; |
| 270 #endif | 274 #endif |
| 271 | 275 |
| 272 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); | 276 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); |
| 273 }; | 277 }; |
| 274 | 278 |
| 275 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 279 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |