| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 namespace webkit_glue { | 22 namespace webkit_glue { |
| 23 class WebClipboardImpl; | 23 class WebClipboardImpl; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace WebKit { | 26 namespace WebKit { |
| 27 class WebGraphicsContext3DProvider; | 27 class WebGraphicsContext3DProvider; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace content { | 30 namespace content { |
| 31 class DeviceMotionEventPump; |
| 31 class GamepadSharedMemoryReader; | 32 class GamepadSharedMemoryReader; |
| 32 class RendererClipboardClient; | 33 class RendererClipboardClient; |
| 33 class ThreadSafeSender; | 34 class ThreadSafeSender; |
| 34 class WebFileSystemImpl; | 35 class WebFileSystemImpl; |
| 35 class WebSharedWorkerRepositoryImpl; | 36 class WebSharedWorkerRepositoryImpl; |
| 36 | 37 |
| 37 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl | 38 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
| 38 : public WebKitPlatformSupportImpl { | 39 : public WebKitPlatformSupportImpl { |
| 39 public: | 40 public: |
| 40 RendererWebKitPlatformSupportImpl(); | 41 RendererWebKitPlatformSupportImpl(); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 WebKit::WebMediaStreamCenterClient* client); | 115 WebKit::WebMediaStreamCenterClient* client); |
| 115 virtual bool processMemorySizesInBytes( | 116 virtual bool processMemorySizesInBytes( |
| 116 size_t* private_bytes, size_t* shared_bytes); | 117 size_t* private_bytes, size_t* shared_bytes); |
| 117 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 118 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 118 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 119 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
| 119 virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D(); | 120 virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D(); |
| 120 virtual GrContext* sharedOffscreenGrContext(); | 121 virtual GrContext* sharedOffscreenGrContext(); |
| 121 virtual WebKit::WebGraphicsContext3DProvider* | 122 virtual WebKit::WebGraphicsContext3DProvider* |
| 122 createSharedOffscreenGraphicsContext3DProvider(); | 123 createSharedOffscreenGraphicsContext3DProvider(); |
| 123 virtual WebKit::WebCompositorSupport* compositorSupport(); | 124 virtual WebKit::WebCompositorSupport* compositorSupport(); |
| 125 virtual void setDeviceMotionListener( |
| 126 WebKit::WebDeviceMotionListener* listener) OVERRIDE; |
| 127 |
| 124 | 128 |
| 125 // Disables the WebSandboxSupport implementation for testing. | 129 // Disables the WebSandboxSupport implementation for testing. |
| 126 // Tests that do not set up a full sandbox environment should call | 130 // Tests that do not set up a full sandbox environment should call |
| 127 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 131 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
| 128 // of this class, to ensure that we don't attempt to use sandbox-related | 132 // of this class, to ensure that we don't attempt to use sandbox-related |
| 129 // file descriptors or other resources. | 133 // file descriptors or other resources. |
| 130 // | 134 // |
| 131 // Returns the previous |enable| value. | 135 // Returns the previous |enable| value. |
| 132 static bool SetSandboxEnabledForTesting(bool enable); | 136 static bool SetSandboxEnabledForTesting(bool enable); |
| 133 | 137 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; | 170 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; |
| 167 | 171 |
| 168 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 172 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
| 169 | 173 |
| 170 scoped_ptr<WebFileSystemImpl> web_file_system_; | 174 scoped_ptr<WebFileSystemImpl> web_file_system_; |
| 171 | 175 |
| 172 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 176 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
| 173 | 177 |
| 174 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 178 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 175 | 179 |
| 180 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; |
| 181 |
| 176 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 182 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 177 | 183 |
| 178 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; | 184 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; |
| 179 | 185 |
| 180 webkit::WebCompositorSupportImpl compositor_support_; | 186 webkit::WebCompositorSupportImpl compositor_support_; |
| 181 }; | 187 }; |
| 182 | 188 |
| 183 } // namespace content | 189 } // namespace content |
| 184 | 190 |
| 185 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 191 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |