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/child/webkitplatformsupport_impl.h" | 11 #include "content/child/webkitplatformsupport_impl.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "third_party/WebKit/public/web/WebSharedWorkerRepository.h" | 13 #include "third_party/WebKit/public/web/WebSharedWorkerRepository.h" |
14 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 14 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
15 #include "third_party/WebKit/public/platform/WebIDBFactory.h" | 15 #include "third_party/WebKit/public/platform/WebIDBFactory.h" |
16 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" | 16 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 class ContextProvider; | 19 class ContextProvider; |
20 } | 20 } |
21 | 21 |
22 namespace webkit_glue { | |
23 class WebClipboardImpl; | |
24 } | |
25 | |
26 namespace WebKit { | 22 namespace WebKit { |
27 class WebGraphicsContext3DProvider; | 23 class WebGraphicsContext3DProvider; |
28 } | 24 } |
29 | 25 |
30 namespace content { | 26 namespace content { |
31 class GamepadSharedMemoryReader; | 27 class GamepadSharedMemoryReader; |
32 class RendererClipboardClient; | 28 class RendererClipboardClient; |
33 class ThreadSafeSender; | 29 class ThreadSafeSender; |
| 30 class WebClipboardImpl; |
34 class WebFileSystemImpl; | 31 class WebFileSystemImpl; |
35 class WebSharedWorkerRepositoryImpl; | 32 class WebSharedWorkerRepositoryImpl; |
36 | 33 |
37 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl | 34 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
38 : public WebKitPlatformSupportImpl { | 35 : public WebKitPlatformSupportImpl { |
39 public: | 36 public: |
40 RendererWebKitPlatformSupportImpl(); | 37 RendererWebKitPlatformSupportImpl(); |
41 virtual ~RendererWebKitPlatformSupportImpl(); | 38 virtual ~RendererWebKitPlatformSupportImpl(); |
42 | 39 |
43 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { | 40 void set_plugin_refresh_allowed(bool plugin_refresh_allowed) { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // Returns the previous |enable| value. | 132 // Returns the previous |enable| value. |
136 static bool SetSandboxEnabledForTesting(bool enable); | 133 static bool SetSandboxEnabledForTesting(bool enable); |
137 | 134 |
138 // Set WebGamepads to return when sampleGamepads() is invoked. | 135 // Set WebGamepads to return when sampleGamepads() is invoked. |
139 static void SetMockGamepadsForTesting(const WebKit::WebGamepads& pads); | 136 static void SetMockGamepadsForTesting(const WebKit::WebGamepads& pads); |
140 | 137 |
141 private: | 138 private: |
142 bool CheckPreparsedJsCachingEnabled() const; | 139 bool CheckPreparsedJsCachingEnabled() const; |
143 | 140 |
144 scoped_ptr<RendererClipboardClient> clipboard_client_; | 141 scoped_ptr<RendererClipboardClient> clipboard_client_; |
145 scoped_ptr<webkit_glue::WebClipboardImpl> clipboard_; | 142 scoped_ptr<WebClipboardImpl> clipboard_; |
146 | 143 |
147 class FileUtilities; | 144 class FileUtilities; |
148 scoped_ptr<FileUtilities> file_utilities_; | 145 scoped_ptr<FileUtilities> file_utilities_; |
149 | 146 |
150 class MimeRegistry; | 147 class MimeRegistry; |
151 scoped_ptr<MimeRegistry> mime_registry_; | 148 scoped_ptr<MimeRegistry> mime_registry_; |
152 | 149 |
153 class SandboxSupport; | 150 class SandboxSupport; |
154 scoped_ptr<SandboxSupport> sandbox_support_; | 151 scoped_ptr<SandboxSupport> sandbox_support_; |
155 | 152 |
(...skipping 24 matching lines...) Expand all Loading... |
180 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 177 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
181 | 178 |
182 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; | 179 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; |
183 | 180 |
184 webkit::WebCompositorSupportImpl compositor_support_; | 181 webkit::WebCompositorSupportImpl compositor_support_; |
185 }; | 182 }; |
186 | 183 |
187 } // namespace content | 184 } // namespace content |
188 | 185 |
189 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 186 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |