| 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_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 class WebDeviceMotionData; | 31 class WebDeviceMotionData; |
| 32 class WebGraphicsContext3DProvider; | 32 class WebGraphicsContext3DProvider; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace content { | 35 namespace content { |
| 36 class DeviceMotionEventPump; | 36 class DeviceMotionEventPump; |
| 37 class GamepadSharedMemoryReader; | 37 class GamepadSharedMemoryReader; |
| 38 class RendererClipboardClient; | 38 class RendererClipboardClient; |
| 39 class ThreadSafeSender; | 39 class ThreadSafeSender; |
| 40 class WebClipboardImpl; | 40 class WebClipboardImpl; |
| 41 class WebCryptoImpl; |
| 41 class WebFileSystemImpl; | 42 class WebFileSystemImpl; |
| 42 class WebSharedWorkerRepositoryImpl; | 43 class WebSharedWorkerRepositoryImpl; |
| 43 | 44 |
| 44 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl | 45 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
| 45 : public WebKitPlatformSupportImpl { | 46 : public WebKitPlatformSupportImpl { |
| 46 public: | 47 public: |
| 47 RendererWebKitPlatformSupportImpl(); | 48 RendererWebKitPlatformSupportImpl(); |
| 48 virtual ~RendererWebKitPlatformSupportImpl(); | 49 virtual ~RendererWebKitPlatformSupportImpl(); |
| 49 | 50 |
| 50 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { | 51 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 size_t* private_bytes, size_t* shared_bytes); | 133 size_t* private_bytes, size_t* shared_bytes); |
| 133 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 134 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 134 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 135 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
| 135 virtual WebKit::WebGraphicsContext3DProvider* | 136 virtual WebKit::WebGraphicsContext3DProvider* |
| 136 createSharedOffscreenGraphicsContext3DProvider(); | 137 createSharedOffscreenGraphicsContext3DProvider(); |
| 137 virtual WebKit::WebCompositorSupport* compositorSupport(); | 138 virtual WebKit::WebCompositorSupport* compositorSupport(); |
| 138 virtual WebKit::WebString convertIDNToUnicode( | 139 virtual WebKit::WebString convertIDNToUnicode( |
| 139 const WebKit::WebString& host, const WebKit::WebString& languages); | 140 const WebKit::WebString& host, const WebKit::WebString& languages); |
| 140 virtual void setDeviceMotionListener( | 141 virtual void setDeviceMotionListener( |
| 141 WebKit::WebDeviceMotionListener* listener) OVERRIDE; | 142 WebKit::WebDeviceMotionListener* listener) OVERRIDE; |
| 143 virtual WebKit::WebCrypto* crypto() OVERRIDE; |
| 142 | 144 |
| 143 // Disables the WebSandboxSupport implementation for testing. | 145 // Disables the WebSandboxSupport implementation for testing. |
| 144 // Tests that do not set up a full sandbox environment should call | 146 // Tests that do not set up a full sandbox environment should call |
| 145 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 147 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
| 146 // of this class, to ensure that we don't attempt to use sandbox-related | 148 // of this class, to ensure that we don't attempt to use sandbox-related |
| 147 // file descriptors or other resources. | 149 // file descriptors or other resources. |
| 148 // | 150 // |
| 149 // Returns the previous |enable| value. | 151 // Returns the previous |enable| value. |
| 150 static bool SetSandboxEnabledForTesting(bool enable); | 152 static bool SetSandboxEnabledForTesting(bool enable); |
| 151 | 153 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 198 |
| 197 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; | 199 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; |
| 198 | 200 |
| 199 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; | 201 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; |
| 200 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 202 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 201 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 203 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 202 | 204 |
| 203 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; | 205 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; |
| 204 | 206 |
| 205 webkit::WebCompositorSupportImpl compositor_support_; | 207 webkit::WebCompositorSupportImpl compositor_support_; |
| 208 |
| 209 scoped_ptr<WebCryptoImpl> web_crypto_; |
| 206 }; | 210 }; |
| 207 | 211 |
| 208 } // namespace content | 212 } // namespace content |
| 209 | 213 |
| 210 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 214 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |