| 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 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace IPC { | 26 namespace IPC { |
| 27 class SyncMessageFilter; | 27 class SyncMessageFilter; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 class WebDeviceMotionData; | 31 class WebDeviceMotionData; |
| 32 class WebDeviceOrientationData; | 32 class WebDeviceOrientationData; |
| 33 class WebGraphicsContext3DProvider; | 33 class WebGraphicsContext3DProvider; |
| 34 class WebScreenOrientationListener; | |
| 35 } | 34 } |
| 36 | 35 |
| 37 namespace content { | 36 namespace content { |
| 38 class DeviceMotionEventPump; | 37 class DeviceMotionEventPump; |
| 39 class DeviceOrientationEventPump; | 38 class DeviceOrientationEventPump; |
| 40 class QuotaMessageFilter; | 39 class QuotaMessageFilter; |
| 41 class RendererClipboardClient; | 40 class RendererClipboardClient; |
| 42 class ScreenOrientationDispatcher; | |
| 43 class ThreadSafeSender; | 41 class ThreadSafeSender; |
| 44 class WebClipboardImpl; | 42 class WebClipboardImpl; |
| 45 class WebCryptoImpl; | 43 class WebCryptoImpl; |
| 46 class WebDatabaseObserverImpl; | 44 class WebDatabaseObserverImpl; |
| 47 class WebFileSystemImpl; | 45 class WebFileSystemImpl; |
| 48 | 46 |
| 49 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl | 47 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
| 50 : public WebKitPlatformSupportImpl { | 48 : public WebKitPlatformSupportImpl { |
| 51 public: | 49 public: |
| 52 RendererWebKitPlatformSupportImpl(); | 50 RendererWebKitPlatformSupportImpl(); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 blink::WebDeviceMotionListener* listener) OVERRIDE; | 143 blink::WebDeviceMotionListener* listener) OVERRIDE; |
| 146 virtual void setDeviceOrientationListener( | 144 virtual void setDeviceOrientationListener( |
| 147 blink::WebDeviceOrientationListener* listener) OVERRIDE; | 145 blink::WebDeviceOrientationListener* listener) OVERRIDE; |
| 148 virtual blink::WebCrypto* crypto() OVERRIDE; | 146 virtual blink::WebCrypto* crypto() OVERRIDE; |
| 149 virtual void queryStorageUsageAndQuota( | 147 virtual void queryStorageUsageAndQuota( |
| 150 const blink::WebURL& storage_partition, | 148 const blink::WebURL& storage_partition, |
| 151 blink::WebStorageQuotaType, | 149 blink::WebStorageQuotaType, |
| 152 blink::WebStorageQuotaCallbacks) OVERRIDE; | 150 blink::WebStorageQuotaCallbacks) OVERRIDE; |
| 153 virtual void vibrate(unsigned int milliseconds); | 151 virtual void vibrate(unsigned int milliseconds); |
| 154 virtual void cancelVibration(); | 152 virtual void cancelVibration(); |
| 155 virtual void setScreenOrientationListener( | |
| 156 blink::WebScreenOrientationListener*) OVERRIDE; | |
| 157 | 153 |
| 158 // Disables the WebSandboxSupport implementation for testing. | 154 // Disables the WebSandboxSupport implementation for testing. |
| 159 // Tests that do not set up a full sandbox environment should call | 155 // Tests that do not set up a full sandbox environment should call |
| 160 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 156 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
| 161 // of this class, to ensure that we don't attempt to use sandbox-related | 157 // of this class, to ensure that we don't attempt to use sandbox-related |
| 162 // file descriptors or other resources. | 158 // file descriptors or other resources. |
| 163 // | 159 // |
| 164 // Returns the previous |enable| value. | 160 // Returns the previous |enable| value. |
| 165 static bool SetSandboxEnabledForTesting(bool enable); | 161 static bool SetSandboxEnabledForTesting(bool enable); |
| 166 | 162 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 211 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 216 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 212 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 217 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 213 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
| 218 | 214 |
| 219 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 215 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
| 220 | 216 |
| 221 webkit::WebCompositorSupportImpl compositor_support_; | 217 webkit::WebCompositorSupportImpl compositor_support_; |
| 222 | 218 |
| 223 scoped_ptr<WebCryptoImpl> web_crypto_; | 219 scoped_ptr<WebCryptoImpl> web_crypto_; |
| 224 | 220 |
| 225 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; | |
| 226 | |
| 227 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 221 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
| 228 }; | 222 }; |
| 229 | 223 |
| 230 } // namespace content | 224 } // namespace content |
| 231 | 225 |
| 232 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 226 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |