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 | 12 |
12 namespace WebKit { | 13 namespace WebKit { |
13 class WebFileUtilities; | 14 class WebFileUtilities; |
14 } | 15 } |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 class WebFileSystemImpl; | 18 class WebFileSystemImpl; |
18 | 19 |
19 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl, | 20 class WorkerWebKitPlatformSupportImpl : public WebKitPlatformSupportImpl, |
20 public WebKit::WebMimeRegistry { | 21 public WebKit::WebMimeRegistry { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 bool sync_dir); | 55 bool sync_dir); |
55 virtual long databaseGetFileAttributes( | 56 virtual long databaseGetFileAttributes( |
56 const WebKit::WebString& vfs_file_name); | 57 const WebKit::WebString& vfs_file_name); |
57 virtual long long databaseGetFileSize( | 58 virtual long long databaseGetFileSize( |
58 const WebKit::WebString& vfs_file_name); | 59 const WebKit::WebString& vfs_file_name); |
59 virtual long long databaseGetSpaceAvailableForOrigin( | 60 virtual long long databaseGetSpaceAvailableForOrigin( |
60 const WebKit::WebString& origin_identifier); | 61 const WebKit::WebString& origin_identifier); |
61 | 62 |
62 virtual WebKit::WebBlobRegistry* blobRegistry(); | 63 virtual WebKit::WebBlobRegistry* blobRegistry(); |
63 | 64 |
64 virtual WebKit::WebIDBFactory* idbFactory() OVERRIDE; | 65 virtual WebKit::WebIDBFactory* idbFactory(); |
65 | 66 |
66 // WebMimeRegistry methods: | 67 // WebMimeRegistry methods: |
67 virtual WebKit::WebMimeRegistry::SupportsType supportsMIMEType( | 68 virtual WebKit::WebMimeRegistry::SupportsType supportsMIMEType( |
68 const WebKit::WebString&); | 69 const WebKit::WebString&); |
69 virtual WebKit::WebMimeRegistry::SupportsType supportsImageMIMEType( | 70 virtual WebKit::WebMimeRegistry::SupportsType supportsImageMIMEType( |
70 const WebKit::WebString&); | 71 const WebKit::WebString&); |
71 virtual WebKit::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( | 72 virtual WebKit::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( |
72 const WebKit::WebString&); | 73 const WebKit::WebString&); |
73 // TODO(ddorwin): Remove after http://webk.it/82983 lands. | 74 // TODO(ddorwin): Remove after http://webk.it/82983 lands. |
74 virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType( | 75 virtual WebKit::WebMimeRegistry::SupportsType supportsMediaMIMEType( |
(...skipping 18 matching lines...) Expand all Loading... |
93 | 94 |
94 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 95 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
95 | 96 |
96 scoped_ptr<WebFileSystemImpl> web_file_system_; | 97 scoped_ptr<WebFileSystemImpl> web_file_system_; |
97 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 98 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
98 }; | 99 }; |
99 | 100 |
100 } // namespace content | 101 } // namespace content |
101 | 102 |
102 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 103 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |