| 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/common/rappor_recorder.mojom.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 #if defined (OS_CHROMEOS) | 24 #if defined (OS_CHROMEOS) |
| 24 #include "chrome/renderer/leak_detector/leak_detector_remote_client.h" | 25 #include "chrome/renderer/leak_detector/leak_detector_remote_client.h" |
| 25 #endif | 26 #endif |
| 26 | 27 |
| 27 class ChromeRenderThreadObserver; | 28 class ChromeRenderThreadObserver; |
| 28 #if defined(ENABLE_PRINT_PREVIEW) | 29 #if defined(ENABLE_PRINT_PREVIEW) |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 #if !defined(DISABLE_NACL) | 221 #if !defined(DISABLE_NACL) |
| 221 // Determines if a NaCl app is allowed, and modifies params to pass the app's | 222 // Determines if a NaCl app is allowed, and modifies params to pass the app's |
| 222 // permissions to the trusted NaCl plugin. | 223 // permissions to the trusted NaCl plugin. |
| 223 static bool IsNaClAllowed(const GURL& manifest_url, | 224 static bool IsNaClAllowed(const GURL& manifest_url, |
| 224 const GURL& app_url, | 225 const GURL& app_url, |
| 225 bool is_nacl_unrestricted, | 226 bool is_nacl_unrestricted, |
| 226 const extensions::Extension* extension, | 227 const extensions::Extension* extension, |
| 227 blink::WebPluginParams* params); | 228 blink::WebPluginParams* params); |
| 228 #endif | 229 #endif |
| 229 | 230 |
| 231 mojom::RapporRecorderPtr rappor_recorder_; |
| 232 |
| 230 std::unique_ptr<ChromeRenderThreadObserver> chrome_observer_; | 233 std::unique_ptr<ChromeRenderThreadObserver> chrome_observer_; |
| 231 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; | 234 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; |
| 232 | 235 |
| 233 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> | 236 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> |
| 234 prescient_networking_dispatcher_; | 237 prescient_networking_dispatcher_; |
| 235 | 238 |
| 236 #if defined(ENABLE_SPELLCHECK) | 239 #if defined(ENABLE_SPELLCHECK) |
| 237 std::unique_ptr<SpellCheck> spellcheck_; | 240 std::unique_ptr<SpellCheck> spellcheck_; |
| 238 #endif | 241 #endif |
| 239 std::unique_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 242 std::unique_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 250 std::set<std::string> allowed_camera_device_origins_; | 253 std::set<std::string> allowed_camera_device_origins_; |
| 251 std::set<std::string> allowed_compositor_origins_; | 254 std::set<std::string> allowed_compositor_origins_; |
| 252 #endif | 255 #endif |
| 253 | 256 |
| 254 #if defined(OS_CHROMEOS) | 257 #if defined(OS_CHROMEOS) |
| 255 std::unique_ptr<LeakDetectorRemoteClient> leak_detector_remote_client_; | 258 std::unique_ptr<LeakDetectorRemoteClient> leak_detector_remote_client_; |
| 256 #endif | 259 #endif |
| 257 }; | 260 }; |
| 258 | 261 |
| 259 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 262 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |