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