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