| 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/common/webkitplatformsupport_impl.h" | 9 #include "content/common/webkitplatformsupport_impl.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebMimeRegistry.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebMimeRegistry.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" |
| 12 | 12 |
| 13 namespace WebKit { | 13 namespace WebKit { |
| 14 class WebFileUtilities; | 14 class WebFileUtilities; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 class ThreadSafeSender; |
| 18 class WebFileSystemImpl; | 19 class WebFileSystemImpl; |
| 19 | 20 |
| 20 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl, | 21 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl, |
| 21 public WebKit::WebMimeRegistry { | 22 public WebKit::WebMimeRegistry { |
| 22 public: | 23 public: |
| 23 WorkerWebKitPlatformSupportImpl(); | 24 WorkerWebKitPlatformSupportImpl(); |
| 24 virtual ~WorkerWebKitPlatformSupportImpl(); | 25 virtual ~WorkerWebKitPlatformSupportImpl(); |
| 25 | 26 |
| 26 // WebKitPlatformSupport methods: | 27 // WebKitPlatformSupport methods: |
| 27 virtual WebKit::WebClipboard* clipboard(); | 28 virtual WebKit::WebClipboard* clipboard(); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual WebKit::WebString wellKnownMimeTypeForExtension( | 85 virtual WebKit::WebString wellKnownMimeTypeForExtension( |
| 85 const WebKit::WebString&); | 86 const WebKit::WebString&); |
| 86 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); | 87 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); |
| 87 virtual WebKit::WebString preferredExtensionForMIMEType( | 88 virtual WebKit::WebString preferredExtensionForMIMEType( |
| 88 const WebKit::WebString&); | 89 const WebKit::WebString&); |
| 89 | 90 |
| 90 private: | 91 private: |
| 91 | 92 |
| 92 class FileUtilities; | 93 class FileUtilities; |
| 93 scoped_ptr<FileUtilities> file_utilities_; | 94 scoped_ptr<FileUtilities> file_utilities_; |
| 94 | |
| 95 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 95 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
| 96 | |
| 97 scoped_ptr<WebFileSystemImpl> web_file_system_; | 96 scoped_ptr<WebFileSystemImpl> web_file_system_; |
| 98 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 97 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
| 98 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace content | 101 } // namespace content |
| 102 | 102 |
| 103 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 103 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |