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 "components/rappor/public/interfaces/rappor_recorder.mojom.h" | 19 #include "components/rappor/public/interfaces/rappor_recorder.mojom.h" |
20 #include "components/spellcheck/spellcheck_build_features.h" | 20 #include "components/spellcheck/spellcheck_build_features.h" |
21 #include "content/public/renderer/content_renderer_client.h" | 21 #include "content/public/renderer/content_renderer_client.h" |
22 #include "extensions/features/features.h" | 22 #include "extensions/features/features.h" |
23 #include "ipc/ipc_channel_proxy.h" | 23 #include "ipc/ipc_channel_proxy.h" |
| 24 #include "media/media_features.h" |
24 #include "ppapi/features/features.h" | 25 #include "ppapi/features/features.h" |
25 #include "printing/features/features.h" | 26 #include "printing/features/features.h" |
26 #include "v8/include/v8.h" | 27 #include "v8/include/v8.h" |
27 | 28 |
28 #if defined (OS_CHROMEOS) | 29 #if defined (OS_CHROMEOS) |
29 #include "chrome/renderer/leak_detector/leak_detector_remote_client.h" | 30 #include "chrome/renderer/leak_detector/leak_detector_remote_client.h" |
30 #endif | 31 #endif |
31 | 32 |
32 class ChromeRenderThreadObserver; | 33 class ChromeRenderThreadObserver; |
33 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 34 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 } | 69 } |
69 | 70 |
70 namespace web_cache { | 71 namespace web_cache { |
71 class WebCacheImpl; | 72 class WebCacheImpl; |
72 } | 73 } |
73 | 74 |
74 namespace blink { | 75 namespace blink { |
75 class WebSecurityOrigin; | 76 class WebSecurityOrigin; |
76 } | 77 } |
77 | 78 |
78 #if defined(ENABLE_WEBRTC) | 79 #if BUILDFLAG(ENABLE_WEBRTC) |
79 class WebRtcLoggingMessageFilter; | 80 class WebRtcLoggingMessageFilter; |
80 #endif | 81 #endif |
81 | 82 |
82 namespace internal { | 83 namespace internal { |
83 | 84 |
84 extern const char kFlashYouTubeRewriteUMA[]; | 85 extern const char kFlashYouTubeRewriteUMA[]; |
85 | 86 |
86 // Used for UMA. Values should not be reorderer or reused. | 87 // Used for UMA. Values should not be reorderer or reused. |
87 // SUCCESS refers to an embed properly rewritten. SUCCESS_PARAMS_REWRITE refers | 88 // SUCCESS refers to an embed properly rewritten. SUCCESS_PARAMS_REWRITE refers |
88 // to an embed rewritten with the params fixed. SUCCESS_ENABLEJSAPI refers to | 89 // to an embed rewritten with the params fixed. SUCCESS_ENABLEJSAPI refers to |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> | 238 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> |
238 prescient_networking_dispatcher_; | 239 prescient_networking_dispatcher_; |
239 | 240 |
240 #if BUILDFLAG(ENABLE_SPELLCHECK) | 241 #if BUILDFLAG(ENABLE_SPELLCHECK) |
241 std::unique_ptr<SpellCheck> spellcheck_; | 242 std::unique_ptr<SpellCheck> spellcheck_; |
242 #endif | 243 #endif |
243 std::unique_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 244 std::unique_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
244 std::unique_ptr<subresource_filter::RulesetDealer> | 245 std::unique_ptr<subresource_filter::RulesetDealer> |
245 subresource_filter_ruleset_dealer_; | 246 subresource_filter_ruleset_dealer_; |
246 std::unique_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 247 std::unique_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
247 #if defined(ENABLE_WEBRTC) | 248 #if BUILDFLAG(ENABLE_WEBRTC) |
248 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; | 249 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; |
249 #endif | 250 #endif |
250 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 251 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
251 std::unique_ptr<ChromePDFPrintClient> pdf_print_client_; | 252 std::unique_ptr<ChromePDFPrintClient> pdf_print_client_; |
252 #endif | 253 #endif |
253 #if BUILDFLAG(ENABLE_PLUGINS) | 254 #if BUILDFLAG(ENABLE_PLUGINS) |
254 std::set<std::string> allowed_camera_device_origins_; | 255 std::set<std::string> allowed_camera_device_origins_; |
255 std::set<std::string> allowed_compositor_origins_; | 256 std::set<std::string> allowed_compositor_origins_; |
256 #endif | 257 #endif |
257 | 258 |
258 #if defined(OS_CHROMEOS) | 259 #if defined(OS_CHROMEOS) |
259 std::unique_ptr<LeakDetectorRemoteClient> leak_detector_remote_client_; | 260 std::unique_ptr<LeakDetectorRemoteClient> leak_detector_remote_client_; |
260 #endif | 261 #endif |
261 | 262 |
262 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); | 263 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); |
263 }; | 264 }; |
264 | 265 |
265 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 266 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |