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 #include "content/worker/worker_webkitplatformsupport_impl.h" | 5 #include "content/worker/worker_webkitplatformsupport_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "content/common/database_util.h" | 10 #include "content/common/database_util.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 return 0; | 161 return 0; |
162 } | 162 } |
163 | 163 |
164 void WorkerWebKitPlatformSupportImpl::dispatchStorageEvent( | 164 void WorkerWebKitPlatformSupportImpl::dispatchStorageEvent( |
165 const WebString& key, const WebString& old_value, | 165 const WebString& key, const WebString& old_value, |
166 const WebString& new_value, const WebString& origin, | 166 const WebString& new_value, const WebString& origin, |
167 const WebKit::WebURL& url, bool is_local_storage) { | 167 const WebKit::WebURL& url, bool is_local_storage) { |
168 NOTREACHED(); | 168 NOTREACHED(); |
169 } | 169 } |
170 | 170 |
171 WebSharedWorkerRepository* | |
172 WorkerWebKitPlatformSupportImpl::sharedWorkerRepository() { | |
173 return 0; | |
174 } | |
175 | |
176 WebKitPlatformSupport::FileHandle | 171 WebKitPlatformSupport::FileHandle |
177 WorkerWebKitPlatformSupportImpl::databaseOpenFile( | 172 WorkerWebKitPlatformSupportImpl::databaseOpenFile( |
178 const WebString& vfs_file_name, int desired_flags) { | 173 const WebString& vfs_file_name, int desired_flags) { |
179 return DatabaseUtil::DatabaseOpenFile(vfs_file_name, desired_flags); | 174 return DatabaseUtil::DatabaseOpenFile(vfs_file_name, desired_flags); |
180 } | 175 } |
181 | 176 |
182 int WorkerWebKitPlatformSupportImpl::databaseDeleteFile( | 177 int WorkerWebKitPlatformSupportImpl::databaseDeleteFile( |
183 const WebString& vfs_file_name, bool sync_dir) { | 178 const WebString& vfs_file_name, bool sync_dir) { |
184 return DatabaseUtil::DatabaseDeleteFile(vfs_file_name, sync_dir); | 179 return DatabaseUtil::DatabaseDeleteFile(vfs_file_name, sync_dir); |
185 } | 180 } |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 new MimeRegistryMsg_GetPreferredExtensionForMimeType( | 272 new MimeRegistryMsg_GetPreferredExtensionForMimeType( |
278 UTF16ToASCII(mime_type), &file_extension)); | 273 UTF16ToASCII(mime_type), &file_extension)); |
279 return webkit_glue::FilePathStringToWebString(file_extension); | 274 return webkit_glue::FilePathStringToWebString(file_extension); |
280 } | 275 } |
281 | 276 |
282 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { | 277 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { |
283 if (!blob_registry_.get()) | 278 if (!blob_registry_.get()) |
284 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current())); | 279 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current())); |
285 return blob_registry_.get(); | 280 return blob_registry_.get(); |
286 } | 281 } |
OLD | NEW |