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" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const WebKit::WebString& vfs_file_name, int desired_flags); | 53 const WebKit::WebString& vfs_file_name, int desired_flags); |
54 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name, | 54 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name, |
55 bool sync_dir); | 55 bool sync_dir); |
56 virtual long databaseGetFileAttributes( | 56 virtual long databaseGetFileAttributes( |
57 const WebKit::WebString& vfs_file_name); | 57 const WebKit::WebString& vfs_file_name); |
58 virtual long long databaseGetFileSize( | 58 virtual long long databaseGetFileSize( |
59 const WebKit::WebString& vfs_file_name); | 59 const WebKit::WebString& vfs_file_name); |
60 virtual long long databaseGetSpaceAvailableForOrigin( | 60 virtual long long databaseGetSpaceAvailableForOrigin( |
61 const WebKit::WebString& origin_identifier); | 61 const WebKit::WebString& origin_identifier); |
62 | 62 |
63 virtual WebKit::WebBlobRegistry* blobRegistry(); | |
64 | |
65 virtual WebKit::WebIDBFactory* idbFactory(); | 63 virtual WebKit::WebIDBFactory* idbFactory(); |
66 | 64 |
67 // WebMimeRegistry methods: | 65 // WebMimeRegistry methods: |
68 virtual WebKit::WebMimeRegistry::SupportsType supportsMIMEType( | 66 virtual WebKit::WebMimeRegistry::SupportsType supportsMIMEType( |
69 const WebKit::WebString&); | 67 const WebKit::WebString&); |
70 virtual WebKit::WebMimeRegistry::SupportsType supportsImageMIMEType( | 68 virtual WebKit::WebMimeRegistry::SupportsType supportsImageMIMEType( |
71 const WebKit::WebString&); | 69 const WebKit::WebString&); |
72 virtual WebKit::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( | 70 virtual WebKit::WebMimeRegistry::SupportsType supportsJavaScriptMIMEType( |
73 const WebKit::WebString&); | 71 const WebKit::WebString&); |
74 // TODO(ddorwin): Remove after http://webk.it/82983 lands. | 72 // TODO(ddorwin): Remove after http://webk.it/82983 lands. |
(...skipping 10 matching lines...) Expand all Loading... |
85 const WebKit::WebString&); | 83 const WebKit::WebString&); |
86 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); | 84 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); |
87 virtual WebKit::WebString preferredExtensionForMIMEType( | 85 virtual WebKit::WebString preferredExtensionForMIMEType( |
88 const WebKit::WebString&); | 86 const WebKit::WebString&); |
89 | 87 |
90 private: | 88 private: |
91 | 89 |
92 class FileUtilities; | 90 class FileUtilities; |
93 scoped_ptr<FileUtilities> file_utilities_; | 91 scoped_ptr<FileUtilities> file_utilities_; |
94 | 92 |
95 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | |
96 | |
97 scoped_ptr<WebFileSystemImpl> web_file_system_; | 93 scoped_ptr<WebFileSystemImpl> web_file_system_; |
98 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 94 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
99 }; | 95 }; |
100 | 96 |
101 } // namespace content | 97 } // namespace content |
102 | 98 |
103 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 99 #endif // CONTENT_WORKER_WORKER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |