| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/id_map.h" | 9 #include "base/id_map.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 class RenderView; | 47 class RenderView; |
| 48 class ThreadSafeSender; | 48 class ThreadSafeSender; |
| 49 class WebBluetoothImpl; | 49 class WebBluetoothImpl; |
| 50 class WebClipboardImpl; | 50 class WebClipboardImpl; |
| 51 class WebDatabaseObserverImpl; | 51 class WebDatabaseObserverImpl; |
| 52 class WebFileSystemImpl; | 52 class WebFileSystemImpl; |
| 53 class WebSchedulerImpl; | 53 class WebSchedulerImpl; |
| 54 | 54 |
| 55 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { | 55 class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl { |
| 56 public: | 56 public: |
| 57 RendererBlinkPlatformImpl(RendererScheduler* renderer_scheduler); | 57 explicit RendererBlinkPlatformImpl(RendererScheduler* renderer_scheduler); |
| 58 virtual ~RendererBlinkPlatformImpl(); | 58 virtual ~RendererBlinkPlatformImpl(); |
| 59 | 59 |
| 60 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { | 60 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { |
| 61 plugin_refresh_allowed_ = plugin_refresh_allowed; | 61 plugin_refresh_allowed_ = plugin_refresh_allowed; |
| 62 } | 62 } |
| 63 // Platform methods: | 63 // Platform methods: |
| 64 virtual void callOnMainThread(void (*func)(void*), void* context); | |
| 65 virtual blink::WebClipboard* clipboard(); | 64 virtual blink::WebClipboard* clipboard(); |
| 66 virtual blink::WebMimeRegistry* mimeRegistry(); | 65 virtual blink::WebMimeRegistry* mimeRegistry(); |
| 67 virtual blink::WebFileUtilities* fileUtilities(); | 66 virtual blink::WebFileUtilities* fileUtilities(); |
| 68 virtual blink::WebSandboxSupport* sandboxSupport(); | 67 virtual blink::WebSandboxSupport* sandboxSupport(); |
| 69 virtual blink::WebCookieJar* cookieJar(); | 68 virtual blink::WebCookieJar* cookieJar(); |
| 70 virtual blink::WebThemeEngine* themeEngine(); | 69 virtual blink::WebThemeEngine* themeEngine(); |
| 71 virtual blink::WebSpeechSynthesizer* createSpeechSynthesizer( | 70 virtual blink::WebSpeechSynthesizer* createSpeechSynthesizer( |
| 72 blink::WebSpeechSynthesizerClient* client); | 71 blink::WebSpeechSynthesizerClient* client); |
| 73 virtual bool sandboxEnabled(); | 72 virtual bool sandboxEnabled(); |
| 74 virtual unsigned long long visitedLinkHash( | 73 virtual unsigned long long visitedLinkHash( |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 scoped_ptr<WebBluetoothImpl> bluetooth_; | 254 scoped_ptr<WebBluetoothImpl> bluetooth_; |
| 256 | 255 |
| 257 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 256 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
| 258 | 257 |
| 259 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 258 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 260 }; | 259 }; |
| 261 | 260 |
| 262 } // namespace content | 261 } // namespace content |
| 263 | 262 |
| 264 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 263 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |