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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 namespace IPC { | 26 namespace IPC { |
27 class SyncMessageFilter; | 27 class SyncMessageFilter; |
28 } | 28 } |
29 | 29 |
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 GamepadSharedMemoryReader; | 36 class GamepadSharedMemoryReader; |
36 class RendererClipboardClient; | 37 class RendererClipboardClient; |
37 class ThreadSafeSender; | 38 class ThreadSafeSender; |
38 class WebClipboardImpl; | 39 class WebClipboardImpl; |
39 class WebFileSystemImpl; | 40 class WebFileSystemImpl; |
40 class WebSharedWorkerRepositoryImpl; | 41 class WebSharedWorkerRepositoryImpl; |
41 | 42 |
42 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl | 43 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
43 : public WebKitPlatformSupportImpl { | 44 : public WebKitPlatformSupportImpl { |
44 public: | 45 public: |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 WebKit::WebMediaStreamCenterClient* client); | 129 WebKit::WebMediaStreamCenterClient* client); |
129 virtual bool processMemorySizesInBytes( | 130 virtual bool processMemorySizesInBytes( |
130 size_t* private_bytes, size_t* shared_bytes); | 131 size_t* private_bytes, size_t* shared_bytes); |
131 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 132 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
132 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 133 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
133 virtual WebKit::WebGraphicsContext3DProvider* | 134 virtual WebKit::WebGraphicsContext3DProvider* |
134 createSharedOffscreenGraphicsContext3DProvider(); | 135 createSharedOffscreenGraphicsContext3DProvider(); |
135 virtual WebKit::WebCompositorSupport* compositorSupport(); | 136 virtual WebKit::WebCompositorSupport* compositorSupport(); |
136 virtual WebKit::WebString convertIDNToUnicode( | 137 virtual WebKit::WebString convertIDNToUnicode( |
137 const WebKit::WebString& host, const WebKit::WebString& languages); | 138 const WebKit::WebString& host, const WebKit::WebString& languages); |
| 139 virtual void setDeviceMotionListener( |
| 140 WebKit::WebDeviceMotionListener* listener) OVERRIDE; |
138 | 141 |
139 // Disables the WebSandboxSupport implementation for testing. | 142 // Disables the WebSandboxSupport implementation for testing. |
140 // Tests that do not set up a full sandbox environment should call | 143 // Tests that do not set up a full sandbox environment should call |
141 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 144 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
142 // of this class, to ensure that we don't attempt to use sandbox-related | 145 // of this class, to ensure that we don't attempt to use sandbox-related |
143 // file descriptors or other resources. | 146 // file descriptors or other resources. |
144 // | 147 // |
145 // Returns the previous |enable| value. | 148 // Returns the previous |enable| value. |
146 static bool SetSandboxEnabledForTesting(bool enable); | 149 static bool SetSandboxEnabledForTesting(bool enable); |
147 | 150 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; | 183 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; |
181 | 184 |
182 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 185 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
183 | 186 |
184 scoped_ptr<WebFileSystemImpl> web_file_system_; | 187 scoped_ptr<WebFileSystemImpl> web_file_system_; |
185 | 188 |
186 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 189 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
187 | 190 |
188 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 191 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
189 | 192 |
| 193 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; |
| 194 |
190 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; | 195 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; |
191 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 196 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
192 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 197 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
193 | 198 |
194 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; | 199 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; |
195 | 200 |
196 webkit::WebCompositorSupportImpl compositor_support_; | 201 webkit::WebCompositorSupportImpl compositor_support_; |
197 }; | 202 }; |
198 | 203 |
199 } // namespace content | 204 } // namespace content |
200 | 205 |
201 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 206 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |