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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 ~RendererBlinkPlatformImpl() override; | 66 ~RendererBlinkPlatformImpl() override; |
67 | 67 |
68 // Shutdown must be called just prior to shutting down blink. | 68 // Shutdown must be called just prior to shutting down blink. |
69 void Shutdown(); | 69 void Shutdown(); |
70 | 70 |
71 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { | 71 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { |
72 plugin_refresh_allowed_ = plugin_refresh_allowed; | 72 plugin_refresh_allowed_ = plugin_refresh_allowed; |
73 } | 73 } |
74 // Platform methods: | 74 // Platform methods: |
75 blink::WebClipboard* clipboard() override; | 75 blink::WebClipboard* clipboard() override; |
76 blink::WebMimeRegistry* mimeRegistry() override; | |
77 blink::WebFileUtilities* fileUtilities() override; | 76 blink::WebFileUtilities* fileUtilities() override; |
78 blink::WebSandboxSupport* sandboxSupport() override; | 77 blink::WebSandboxSupport* sandboxSupport() override; |
79 blink::WebCookieJar* cookieJar() override; | 78 blink::WebCookieJar* cookieJar() override; |
80 blink::WebThemeEngine* themeEngine() override; | 79 blink::WebThemeEngine* themeEngine() override; |
81 blink::WebSpeechSynthesizer* createSpeechSynthesizer( | 80 blink::WebSpeechSynthesizer* createSpeechSynthesizer( |
82 blink::WebSpeechSynthesizerClient* client) override; | 81 blink::WebSpeechSynthesizerClient* client) override; |
83 virtual bool sandboxEnabled(); | 82 virtual bool sandboxEnabled(); |
84 unsigned long long visitedLinkHash(const char* canonicalURL, | 83 unsigned long long visitedLinkHash(const char* canonicalURL, |
85 size_t length) override; | 84 size_t length) override; |
86 bool isLinkVisited(unsigned long long linkHash) override; | 85 bool isLinkVisited(unsigned long long linkHash) override; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); | 249 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); |
251 | 250 |
252 std::unique_ptr<blink::WebThread> main_thread_; | 251 std::unique_ptr<blink::WebThread> main_thread_; |
253 | 252 |
254 std::unique_ptr<RendererClipboardDelegate> clipboard_delegate_; | 253 std::unique_ptr<RendererClipboardDelegate> clipboard_delegate_; |
255 std::unique_ptr<WebClipboardImpl> clipboard_; | 254 std::unique_ptr<WebClipboardImpl> clipboard_; |
256 | 255 |
257 class FileUtilities; | 256 class FileUtilities; |
258 std::unique_ptr<FileUtilities> file_utilities_; | 257 std::unique_ptr<FileUtilities> file_utilities_; |
259 | 258 |
260 class MimeRegistry; | |
261 std::unique_ptr<MimeRegistry> mime_registry_; | |
262 | |
263 #if !defined(OS_ANDROID) && !defined(OS_WIN) | 259 #if !defined(OS_ANDROID) && !defined(OS_WIN) |
264 class SandboxSupport; | 260 class SandboxSupport; |
265 std::unique_ptr<SandboxSupport> sandbox_support_; | 261 std::unique_ptr<SandboxSupport> sandbox_support_; |
266 #endif | 262 #endif |
267 | 263 |
268 // This counter keeps track of the number of times sudden termination is | 264 // This counter keeps track of the number of times sudden termination is |
269 // enabled or disabled. It starts at 0 (enabled) and for every disable | 265 // enabled or disabled. It starts at 0 (enabled) and for every disable |
270 // increments by 1, for every enable decrements by 1. When it reaches 0, | 266 // increments by 1, for every enable decrements by 1. When it reaches 0, |
271 // we tell the browser to enable fast termination. | 267 // we tell the browser to enable fast termination. |
272 int sudden_termination_disables_; | 268 int sudden_termination_disables_; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; | 301 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; |
306 | 302 |
307 mojom::URLLoaderFactoryAssociatedPtr url_loader_factory_; | 303 mojom::URLLoaderFactoryAssociatedPtr url_loader_factory_; |
308 | 304 |
309 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 305 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
310 }; | 306 }; |
311 | 307 |
312 } // namespace content | 308 } // namespace content |
313 | 309 |
314 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 310 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |