| 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_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| 6 #define CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/child/webkitplatformsupport_impl.h" | 9 #include "content/child/webkitplatformsupport_impl.h" |
| 10 #include "third_party/WebKit/public/platform/WebIDBFactory.h" | 10 #include "third_party/WebKit/public/platform/WebIDBFactory.h" |
| 11 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" | 11 #include "third_party/WebKit/public/platform/WebMimeRegistry.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class MessageLoopProxy; | 14 class MessageLoopProxy; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace IPC { | 17 namespace IPC { |
| 18 class SyncMessageFilter; | 18 class SyncMessageFilter; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace WebKit { | 21 namespace WebKit { |
| 22 class WebFileUtilities; | 22 class WebFileUtilities; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 class QuotaMessageFilter; | |
| 27 class ThreadSafeSender; | 26 class ThreadSafeSender; |
| 28 class WebFileSystemImpl; | 27 class WebFileSystemImpl; |
| 29 | 28 |
| 30 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl, | 29 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl, |
| 31 public WebKit::WebMimeRegistry { | 30 public WebKit::WebMimeRegistry { |
| 32 public: | 31 public: |
| 33 WorkerWebKitPlatformSupportImpl( | 32 WorkerWebKitPlatformSupportImpl( |
| 34 ThreadSafeSender* sender, | 33 ThreadSafeSender* sender, |
| 35 IPC::SyncMessageFilter* sync_message_filter, | 34 IPC::SyncMessageFilter* sync_message_filter); |
| 36 QuotaMessageFilter* quota_message_filter); | |
| 37 virtual ~WorkerWebKitPlatformSupportImpl(); | 35 virtual ~WorkerWebKitPlatformSupportImpl(); |
| 38 | 36 |
| 39 // WebKitPlatformSupport methods: | 37 // WebKitPlatformSupport methods: |
| 40 virtual WebKit::WebClipboard* clipboard(); | 38 virtual WebKit::WebClipboard* clipboard(); |
| 41 virtual WebKit::WebMimeRegistry* mimeRegistry(); | 39 virtual WebKit::WebMimeRegistry* mimeRegistry(); |
| 42 virtual WebKit::WebFileSystem* fileSystem(); | 40 virtual WebKit::WebFileSystem* fileSystem(); |
| 43 virtual WebKit::WebFileUtilities* fileUtilities(); | 41 virtual WebKit::WebFileUtilities* fileUtilities(); |
| 44 virtual WebKit::WebSandboxSupport* sandboxSupport(); | 42 virtual WebKit::WebSandboxSupport* sandboxSupport(); |
| 45 virtual bool sandboxEnabled(); | 43 virtual bool sandboxEnabled(); |
| 46 virtual unsigned long long visitedLinkHash(const char* canonicalURL, | 44 virtual unsigned long long visitedLinkHash(const char* canonicalURL, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 private: | 107 private: |
| 110 | 108 |
| 111 class FileUtilities; | 109 class FileUtilities; |
| 112 scoped_ptr<FileUtilities> file_utilities_; | 110 scoped_ptr<FileUtilities> file_utilities_; |
| 113 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 111 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
| 114 scoped_ptr<WebFileSystemImpl> web_file_system_; | 112 scoped_ptr<WebFileSystemImpl> web_file_system_; |
| 115 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 113 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
| 116 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 114 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 117 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; | 115 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; |
| 118 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 116 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 119 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | |
| 120 }; | 117 }; |
| 121 | 118 |
| 122 } // namespace content | 119 } // namespace content |
| 123 | 120 |
| 124 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 121 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |