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 20 matching lines...) Expand all Loading... |
31 using WebKit::WebFileUtilities; | 31 using WebKit::WebFileUtilities; |
32 using WebKit::WebKitPlatformSupport; | 32 using WebKit::WebKitPlatformSupport; |
33 using WebKit::WebMessagePortChannel; | 33 using WebKit::WebMessagePortChannel; |
34 using WebKit::WebMimeRegistry; | 34 using WebKit::WebMimeRegistry; |
35 using WebKit::WebSandboxSupport; | 35 using WebKit::WebSandboxSupport; |
36 using WebKit::WebSharedWorkerRepository; | 36 using WebKit::WebSharedWorkerRepository; |
37 using WebKit::WebStorageNamespace; | 37 using WebKit::WebStorageNamespace; |
38 using WebKit::WebString; | 38 using WebKit::WebString; |
39 using WebKit::WebURL; | 39 using WebKit::WebURL; |
40 | 40 |
| 41 namespace content { |
| 42 |
41 // TODO(kinuko): Probably this could be consolidated into | 43 // TODO(kinuko): Probably this could be consolidated into |
42 // RendererWebKitPlatformSupportImpl::FileUtilities. | 44 // RendererWebKitPlatformSupportImpl::FileUtilities. |
43 class WorkerWebKitPlatformSupportImpl::FileUtilities | 45 class WorkerWebKitPlatformSupportImpl::FileUtilities |
44 : public webkit_glue::WebFileUtilitiesImpl { | 46 : public webkit_glue::WebFileUtilitiesImpl { |
45 public: | 47 public: |
46 virtual bool getFileInfo(const WebString& path, WebFileInfo& result); | 48 virtual bool getFileInfo(const WebString& path, WebFileInfo& result); |
47 }; | 49 }; |
48 | 50 |
49 static bool SendSyncMessageFromAnyThread(IPC::SyncMessage* msg) { | 51 static bool SendSyncMessageFromAnyThread(IPC::SyncMessage* msg) { |
50 WorkerThread* worker_thread = WorkerThread::current(); | 52 WorkerThread* worker_thread = WorkerThread::current(); |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 new MimeRegistryMsg_GetPreferredExtensionForMimeType( | 279 new MimeRegistryMsg_GetPreferredExtensionForMimeType( |
278 UTF16ToASCII(mime_type), &file_extension)); | 280 UTF16ToASCII(mime_type), &file_extension)); |
279 return webkit_glue::FilePathStringToWebString(file_extension); | 281 return webkit_glue::FilePathStringToWebString(file_extension); |
280 } | 282 } |
281 | 283 |
282 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { | 284 WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() { |
283 if (!blob_registry_.get()) | 285 if (!blob_registry_.get()) |
284 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current())); | 286 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current())); |
285 return blob_registry_.get(); | 287 return blob_registry_.get(); |
286 } | 288 } |
| 289 |
| 290 } // namespace content |
OLD | NEW |