| 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/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" |
| 14 | 14 |
| 15 class RendererClipboardClient; | 15 class RendererClipboardClient; |
| 16 class WebSharedWorkerRepositoryImpl; | 16 class WebSharedWorkerRepositoryImpl; |
| 17 class WebFileSystemImpl; | 17 class WebFileSystemImpl; |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 class GamepadSharedMemoryReader; | 20 class GamepadSharedMemoryReader; |
| 21 class Hyphenator; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace webkit_glue { | 24 namespace webkit_glue { |
| 24 class WebClipboardImpl; | 25 class WebClipboardImpl; |
| 25 } | 26 } |
| 26 | 27 |
| 27 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl | 28 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
| 28 : public content::WebKitPlatformSupportImpl { | 29 : public content::WebKitPlatformSupportImpl { |
| 29 public: | 30 public: |
| 30 RendererWebKitPlatformSupportImpl(); | 31 RendererWebKitPlatformSupportImpl(); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 WebKit::WebAudioDevice::RenderCallback* callback) OVERRIDE; | 78 WebKit::WebAudioDevice::RenderCallback* callback) OVERRIDE; |
| 78 virtual WebKit::WebBlobRegistry* blobRegistry() OVERRIDE; | 79 virtual WebKit::WebBlobRegistry* blobRegistry() OVERRIDE; |
| 79 virtual void sampleGamepads(WebKit::WebGamepads&) OVERRIDE; | 80 virtual void sampleGamepads(WebKit::WebGamepads&) OVERRIDE; |
| 80 virtual WebKit::WebString userAgent(const WebKit::WebURL& url) OVERRIDE; | 81 virtual WebKit::WebString userAgent(const WebKit::WebURL& url) OVERRIDE; |
| 81 virtual void GetPlugins(bool refresh, | 82 virtual void GetPlugins(bool refresh, |
| 82 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; | 83 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; |
| 83 virtual WebKit::WebPeerConnection00Handler* createPeerConnection00Handler( | 84 virtual WebKit::WebPeerConnection00Handler* createPeerConnection00Handler( |
| 84 WebKit::WebPeerConnection00HandlerClient* client) OVERRIDE; | 85 WebKit::WebPeerConnection00HandlerClient* client) OVERRIDE; |
| 85 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( | 86 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( |
| 86 WebKit::WebMediaStreamCenterClient* client) OVERRIDE; | 87 WebKit::WebMediaStreamCenterClient* client) OVERRIDE; |
| 88 virtual bool canHyphenate(const WebKit::WebString& locale) OVERRIDE; |
| 89 virtual size_t computeLastHyphenLocation(const char16* characters, |
| 90 size_t length, |
| 91 size_t before_index, |
| 92 const WebKit::WebString& locale) OVERRIDE; |
| 87 | 93 |
| 88 // Disables the WebSandboxSupport implementation for testing. | 94 // Disables the WebSandboxSupport implementation for testing. |
| 89 // Tests that do not set up a full sandbox environment should call | 95 // Tests that do not set up a full sandbox environment should call |
| 90 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 96 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
| 91 // of this class, to ensure that we don't attempt to use sandbox-related | 97 // of this class, to ensure that we don't attempt to use sandbox-related |
| 92 // file descriptors or other resources. | 98 // file descriptors or other resources. |
| 93 // | 99 // |
| 94 // Returns the previous |enable| value. | 100 // Returns the previous |enable| value. |
| 95 static bool SetSandboxEnabledForTesting(bool enable); | 101 static bool SetSandboxEnabledForTesting(bool enable); |
| 96 | 102 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 125 // to WorkerService on the browser thread. | 131 // to WorkerService on the browser thread. |
| 126 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; | 132 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; |
| 127 | 133 |
| 128 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 134 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
| 129 | 135 |
| 130 scoped_ptr<WebFileSystemImpl> web_file_system_; | 136 scoped_ptr<WebFileSystemImpl> web_file_system_; |
| 131 | 137 |
| 132 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 138 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
| 133 | 139 |
| 134 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 140 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 141 |
| 142 scoped_ptr<content::Hyphenator> hyphenator_; |
| 135 }; | 143 }; |
| 136 | 144 |
| 137 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 145 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |