| 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 CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 ~RendererBlinkPlatformImpl() override; | 73 ~RendererBlinkPlatformImpl() override; |
| 74 | 74 |
| 75 // Shutdown must be called just prior to shutting down blink. | 75 // Shutdown must be called just prior to shutting down blink. |
| 76 void Shutdown(); | 76 void Shutdown(); |
| 77 | 77 |
| 78 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { | 78 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { |
| 79 plugin_refresh_allowed_ = plugin_refresh_allowed; | 79 plugin_refresh_allowed_ = plugin_refresh_allowed; |
| 80 } | 80 } |
| 81 // Platform methods: | 81 // Platform methods: |
| 82 blink::WebClipboard* clipboard() override; | 82 blink::WebClipboard* clipboard() override; |
| 83 blink::WebMimeRegistry* mimeRegistry() override; | |
| 84 blink::WebFileUtilities* fileUtilities() override; | 83 blink::WebFileUtilities* fileUtilities() override; |
| 85 blink::WebSandboxSupport* sandboxSupport() override; | 84 blink::WebSandboxSupport* sandboxSupport() override; |
| 86 blink::WebCookieJar* cookieJar() override; | 85 blink::WebCookieJar* cookieJar() override; |
| 87 blink::WebThemeEngine* themeEngine() override; | 86 blink::WebThemeEngine* themeEngine() override; |
| 88 blink::WebSpeechSynthesizer* createSpeechSynthesizer( | 87 blink::WebSpeechSynthesizer* createSpeechSynthesizer( |
| 89 blink::WebSpeechSynthesizerClient* client) override; | 88 blink::WebSpeechSynthesizerClient* client) override; |
| 90 virtual bool sandboxEnabled(); | 89 virtual bool sandboxEnabled(); |
| 91 unsigned long long visitedLinkHash(const char* canonicalURL, | 90 unsigned long long visitedLinkHash(const char* canonicalURL, |
| 92 size_t length) override; | 91 size_t length) override; |
| 93 bool isLinkVisited(unsigned long long linkHash) override; | 92 bool isLinkVisited(unsigned long long linkHash) override; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); | 256 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); |
| 258 | 257 |
| 259 std::unique_ptr<blink::WebThread> main_thread_; | 258 std::unique_ptr<blink::WebThread> main_thread_; |
| 260 | 259 |
| 261 std::unique_ptr<RendererClipboardDelegate> clipboard_delegate_; | 260 std::unique_ptr<RendererClipboardDelegate> clipboard_delegate_; |
| 262 std::unique_ptr<WebClipboardImpl> clipboard_; | 261 std::unique_ptr<WebClipboardImpl> clipboard_; |
| 263 | 262 |
| 264 class FileUtilities; | 263 class FileUtilities; |
| 265 std::unique_ptr<FileUtilities> file_utilities_; | 264 std::unique_ptr<FileUtilities> file_utilities_; |
| 266 | 265 |
| 267 class MimeRegistry; | |
| 268 std::unique_ptr<MimeRegistry> mime_registry_; | |
| 269 | |
| 270 #if !defined(OS_ANDROID) && !defined(OS_WIN) | 266 #if !defined(OS_ANDROID) && !defined(OS_WIN) |
| 271 class SandboxSupport; | 267 class SandboxSupport; |
| 272 std::unique_ptr<SandboxSupport> sandbox_support_; | 268 std::unique_ptr<SandboxSupport> sandbox_support_; |
| 273 #endif | 269 #endif |
| 274 | 270 |
| 275 // This counter keeps track of the number of times sudden termination is | 271 // This counter keeps track of the number of times sudden termination is |
| 276 // enabled or disabled. It starts at 0 (enabled) and for every disable | 272 // enabled or disabled. It starts at 0 (enabled) and for every disable |
| 277 // increments by 1, for every enable decrements by 1. When it reaches 0, | 273 // increments by 1, for every enable decrements by 1. When it reaches 0, |
| 278 // we tell the browser to enable fast termination. | 274 // we tell the browser to enable fast termination. |
| 279 int sudden_termination_disables_; | 275 int sudden_termination_disables_; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; | 308 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; |
| 313 | 309 |
| 314 mojom::URLLoaderFactoryPtr url_loader_factory_; | 310 mojom::URLLoaderFactoryPtr url_loader_factory_; |
| 315 | 311 |
| 316 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 312 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 317 }; | 313 }; |
| 318 | 314 |
| 319 } // namespace content | 315 } // namespace content |
| 320 | 316 |
| 321 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 317 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |