| 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" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/common/webkitplatformsupport_impl.h" | 12 #include "content/common/webkitplatformsupport_impl.h" |
| 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
| 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBFactory.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebIDBFactory.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerReposi
tory.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerReposi
tory.h" |
| 16 #include "webkit/compositor_bindings/web_compositor_support_impl.h" |
| 16 | 17 |
| 17 namespace cc { | 18 namespace cc { |
| 18 class ContextProvider; | 19 class ContextProvider; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace webkit_glue { | 22 namespace webkit_glue { |
| 22 class WebClipboardImpl; | 23 class WebClipboardImpl; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace WebKit { | 26 namespace WebKit { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( | 113 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( |
| 113 WebKit::WebMediaStreamCenterClient* client); | 114 WebKit::WebMediaStreamCenterClient* client); |
| 114 virtual bool processMemorySizesInBytes( | 115 virtual bool processMemorySizesInBytes( |
| 115 size_t* private_bytes, size_t* shared_bytes); | 116 size_t* private_bytes, size_t* shared_bytes); |
| 116 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 117 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
| 117 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 118 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
| 118 virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D(); | 119 virtual WebKit::WebGraphicsContext3D* sharedOffscreenGraphicsContext3D(); |
| 119 virtual GrContext* sharedOffscreenGrContext(); | 120 virtual GrContext* sharedOffscreenGrContext(); |
| 120 virtual WebKit::WebGraphicsContext3DProvider* | 121 virtual WebKit::WebGraphicsContext3DProvider* |
| 121 createSharedOffscreenGraphicsContext3DProvider(); | 122 createSharedOffscreenGraphicsContext3DProvider(); |
| 123 virtual WebKit::WebCompositorSupport* compositorSupport(); |
| 122 | 124 |
| 123 // Disables the WebSandboxSupport implementation for testing. | 125 // Disables the WebSandboxSupport implementation for testing. |
| 124 // Tests that do not set up a full sandbox environment should call | 126 // Tests that do not set up a full sandbox environment should call |
| 125 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 127 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
| 126 // of this class, to ensure that we don't attempt to use sandbox-related | 128 // of this class, to ensure that we don't attempt to use sandbox-related |
| 127 // file descriptors or other resources. | 129 // file descriptors or other resources. |
| 128 // | 130 // |
| 129 // Returns the previous |enable| value. | 131 // Returns the previous |enable| value. |
| 130 static bool SetSandboxEnabledForTesting(bool enable); | 132 static bool SetSandboxEnabledForTesting(bool enable); |
| 131 | 133 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 169 |
| 168 scoped_ptr<WebFileSystemImpl> web_file_system_; | 170 scoped_ptr<WebFileSystemImpl> web_file_system_; |
| 169 | 171 |
| 170 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 172 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
| 171 | 173 |
| 172 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 174 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 173 | 175 |
| 174 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 176 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 175 | 177 |
| 176 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; | 178 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; |
| 179 |
| 180 webkit::WebCompositorSupportImpl compositor_support_; |
| 177 }; | 181 }; |
| 178 | 182 |
| 179 } // namespace content | 183 } // namespace content |
| 180 | 184 |
| 181 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 185 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |