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 "content/public/renderer/content_renderer_client.h" | 20 #include "content/public/renderer/content_renderer_client.h" |
21 #include "ipc/ipc_channel_proxy.h" | 21 #include "ipc/ipc_channel_proxy.h" |
| 22 #include "printing/features/features.h" |
22 #include "v8/include/v8.h" | 23 #include "v8/include/v8.h" |
23 | 24 |
24 #if defined (OS_CHROMEOS) | 25 #if defined (OS_CHROMEOS) |
25 #include "chrome/renderer/leak_detector/leak_detector_remote_client.h" | 26 #include "chrome/renderer/leak_detector/leak_detector_remote_client.h" |
26 #endif | 27 #endif |
27 | 28 |
28 class ChromeRenderThreadObserver; | 29 class ChromeRenderThreadObserver; |
29 #if defined(ENABLE_PRINT_PREVIEW) | 30 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
30 class ChromePDFPrintClient; | 31 class ChromePDFPrintClient; |
31 #endif | 32 #endif |
32 class PrescientNetworkingDispatcher; | 33 class PrescientNetworkingDispatcher; |
33 #if defined(ENABLE_SPELLCHECK) | 34 #if defined(ENABLE_SPELLCHECK) |
34 class SpellCheck; | 35 class SpellCheck; |
35 class SpellCheckProvider; | 36 class SpellCheckProvider; |
36 #endif | 37 #endif |
37 | 38 |
38 struct ChromeViewHostMsg_GetPluginInfo_Output; | 39 struct ChromeViewHostMsg_GetPluginInfo_Output; |
39 | 40 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 #if defined(ENABLE_SPELLCHECK) | 237 #if defined(ENABLE_SPELLCHECK) |
237 std::unique_ptr<SpellCheck> spellcheck_; | 238 std::unique_ptr<SpellCheck> spellcheck_; |
238 #endif | 239 #endif |
239 std::unique_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 240 std::unique_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
240 std::unique_ptr<subresource_filter::RulesetDealer> | 241 std::unique_ptr<subresource_filter::RulesetDealer> |
241 subresource_filter_ruleset_dealer_; | 242 subresource_filter_ruleset_dealer_; |
242 std::unique_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 243 std::unique_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
243 #if defined(ENABLE_WEBRTC) | 244 #if defined(ENABLE_WEBRTC) |
244 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; | 245 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; |
245 #endif | 246 #endif |
246 #if defined(ENABLE_PRINT_PREVIEW) | 247 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
247 std::unique_ptr<ChromePDFPrintClient> pdf_print_client_; | 248 std::unique_ptr<ChromePDFPrintClient> pdf_print_client_; |
248 #endif | 249 #endif |
249 #if defined(ENABLE_PLUGINS) | 250 #if defined(ENABLE_PLUGINS) |
250 std::set<std::string> allowed_camera_device_origins_; | 251 std::set<std::string> allowed_camera_device_origins_; |
251 std::set<std::string> allowed_compositor_origins_; | 252 std::set<std::string> allowed_compositor_origins_; |
252 #endif | 253 #endif |
253 | 254 |
254 #if defined(OS_CHROMEOS) | 255 #if defined(OS_CHROMEOS) |
255 std::unique_ptr<LeakDetectorRemoteClient> leak_detector_remote_client_; | 256 std::unique_ptr<LeakDetectorRemoteClient> leak_detector_remote_client_; |
256 #endif | 257 #endif |
257 | 258 |
258 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); | 259 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); |
259 }; | 260 }; |
260 | 261 |
261 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 262 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |