| 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 blink { | 21 namespace blink { |
| 22 class WebFileUtilities; | 22 class WebFileUtilities; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 class QuotaMessageFilter; | 26 class QuotaMessageFilter; |
| 27 class ThreadSafeSender; | 27 class ThreadSafeSender; |
| 28 class WebCryptoImpl; |
| 28 class WebDatabaseObserverImpl; | 29 class WebDatabaseObserverImpl; |
| 29 class WebFileSystemImpl; | 30 class WebFileSystemImpl; |
| 30 | 31 |
| 31 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl, | 32 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl, |
| 32 public blink::WebMimeRegistry { | 33 public blink::WebMimeRegistry { |
| 33 public: | 34 public: |
| 34 WorkerWebKitPlatformSupportImpl( | 35 WorkerWebKitPlatformSupportImpl( |
| 35 ThreadSafeSender* sender, | 36 ThreadSafeSender* sender, |
| 36 IPC::SyncMessageFilter* sync_message_filter, | 37 IPC::SyncMessageFilter* sync_message_filter, |
| 37 QuotaMessageFilter* quota_message_filter); | 38 QuotaMessageFilter* quota_message_filter); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 const blink::WebString&); | 92 const blink::WebString&); |
| 92 virtual bool supportsEncryptedMediaMIMEType(const blink::WebString&, | 93 virtual bool supportsEncryptedMediaMIMEType(const blink::WebString&, |
| 93 const blink::WebString&, | 94 const blink::WebString&, |
| 94 const blink::WebString&); | 95 const blink::WebString&); |
| 95 virtual blink::WebMimeRegistry::SupportsType supportsNonImageMIMEType( | 96 virtual blink::WebMimeRegistry::SupportsType supportsNonImageMIMEType( |
| 96 const blink::WebString&); | 97 const blink::WebString&); |
| 97 virtual blink::WebString mimeTypeForExtension(const blink::WebString&); | 98 virtual blink::WebString mimeTypeForExtension(const blink::WebString&); |
| 98 virtual blink::WebString wellKnownMimeTypeForExtension( | 99 virtual blink::WebString wellKnownMimeTypeForExtension( |
| 99 const blink::WebString&); | 100 const blink::WebString&); |
| 100 virtual blink::WebString mimeTypeFromFile(const blink::WebString&); | 101 virtual blink::WebString mimeTypeFromFile(const blink::WebString&); |
| 102 virtual blink::WebCrypto* crypto() OVERRIDE; |
| 101 virtual void queryStorageUsageAndQuota( | 103 virtual void queryStorageUsageAndQuota( |
| 102 const blink::WebURL& storage_partition, | 104 const blink::WebURL& storage_partition, |
| 103 blink::WebStorageQuotaType, | 105 blink::WebStorageQuotaType, |
| 104 blink::WebStorageQuotaCallbacks) OVERRIDE; | 106 blink::WebStorageQuotaCallbacks) OVERRIDE; |
| 105 | 107 |
| 106 WebDatabaseObserverImpl* web_database_observer_impl() { | 108 WebDatabaseObserverImpl* web_database_observer_impl() { |
| 107 return web_database_observer_impl_.get(); | 109 return web_database_observer_impl_.get(); |
| 108 } | 110 } |
| 109 | 111 |
| 110 private: | 112 private: |
| 111 | 113 |
| 112 class FileUtilities; | 114 class FileUtilities; |
| 113 scoped_ptr<FileUtilities> file_utilities_; | 115 scoped_ptr<FileUtilities> file_utilities_; |
| 114 scoped_ptr<blink::WebBlobRegistry> blob_registry_; | 116 scoped_ptr<blink::WebBlobRegistry> blob_registry_; |
| 115 scoped_ptr<blink::WebIDBFactory> web_idb_factory_; | 117 scoped_ptr<blink::WebIDBFactory> web_idb_factory_; |
| 116 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 118 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 117 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; | 119 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; |
| 118 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 120 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
| 119 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 121 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
| 120 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 122 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
| 123 scoped_ptr<WebCryptoImpl> web_crypto_; |
| 121 | 124 |
| 122 DISALLOW_COPY_AND_ASSIGN(WorkerWebKitPlatformSupportImpl); | 125 DISALLOW_COPY_AND_ASSIGN(WorkerWebKitPlatformSupportImpl); |
| 123 }; | 126 }; |
| 124 | 127 |
| 125 } // namespace content | 128 } // namespace content |
| 126 | 129 |
| 127 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 130 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |