OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/worker/worker_webkitclient_impl.h" | 5 #include "chrome/worker/worker_webkitclient_impl.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/common/database_util.h" | 8 #include "chrome/common/database_util.h" |
9 #include "chrome/common/render_messages.h" | 9 #include "chrome/common/render_messages.h" |
10 #include "chrome/common/render_messages_params.h" | 10 #include "chrome/common/render_messages_params.h" |
11 #include "chrome/common/webblobregistry_impl.h" | 11 #include "chrome/common/webblobregistry_impl.h" |
12 #include "chrome/common/webmessageportchannel_impl.h" | 12 #include "chrome/common/webmessageportchannel_impl.h" |
13 #include "chrome/worker/worker_thread.h" | 13 #include "chrome/worker/worker_thread.h" |
14 #include "third_party/WebKit/WebKit/chromium/public/WebBlobRegistry.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebBlobRegistry.h" |
15 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
16 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
17 | 17 |
18 using WebKit::WebBlobRegistry; | 18 using WebKit::WebBlobRegistry; |
19 using WebKit::WebClipboard; | 19 using WebKit::WebClipboard; |
| 20 using WebKit::WebFileSystem; |
20 using WebKit::WebKitClient; | 21 using WebKit::WebKitClient; |
21 using WebKit::WebMessagePortChannel; | 22 using WebKit::WebMessagePortChannel; |
22 using WebKit::WebMimeRegistry; | 23 using WebKit::WebMimeRegistry; |
23 using WebKit::WebSandboxSupport; | 24 using WebKit::WebSandboxSupport; |
24 using WebKit::WebSharedWorkerRepository; | 25 using WebKit::WebSharedWorkerRepository; |
25 using WebKit::WebStorageNamespace; | 26 using WebKit::WebStorageNamespace; |
26 using WebKit::WebString; | 27 using WebKit::WebString; |
27 using WebKit::WebURL; | 28 using WebKit::WebURL; |
28 | 29 |
29 WebClipboard* WorkerWebKitClientImpl::clipboard() { | 30 WebClipboard* WorkerWebKitClientImpl::clipboard() { |
30 NOTREACHED(); | 31 NOTREACHED(); |
31 return NULL; | 32 return NULL; |
32 } | 33 } |
33 | 34 |
34 WebMimeRegistry* WorkerWebKitClientImpl::mimeRegistry() { | 35 WebMimeRegistry* WorkerWebKitClientImpl::mimeRegistry() { |
35 return this; | 36 return this; |
36 } | 37 } |
37 | 38 |
| 39 WebKit::WebFileSystem* WorkerWebKitClientImpl::fileSystem() { |
| 40 if (!web_file_system_.get()) |
| 41 web_file_system_.reset(new WebFileSystemImpl()); |
| 42 return web_file_system_.get(); |
| 43 } |
| 44 |
38 WebKit::WebFileUtilities* WorkerWebKitClientImpl::fileUtilities() { | 45 WebKit::WebFileUtilities* WorkerWebKitClientImpl::fileUtilities() { |
39 return &file_utilities_; | 46 return &file_utilities_; |
40 } | 47 } |
41 | 48 |
42 WebSandboxSupport* WorkerWebKitClientImpl::sandboxSupport() { | 49 WebSandboxSupport* WorkerWebKitClientImpl::sandboxSupport() { |
43 NOTREACHED(); | 50 NOTREACHED(); |
44 return NULL; | 51 return NULL; |
45 } | 52 } |
46 | 53 |
47 bool WorkerWebKitClientImpl::sandboxEnabled() { | 54 bool WorkerWebKitClientImpl::sandboxEnabled() { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 const WebString&) { | 181 const WebString&) { |
175 NOTREACHED(); | 182 NOTREACHED(); |
176 return WebString(); | 183 return WebString(); |
177 } | 184 } |
178 | 185 |
179 WebBlobRegistry* WorkerWebKitClientImpl::blobRegistry() { | 186 WebBlobRegistry* WorkerWebKitClientImpl::blobRegistry() { |
180 if (!blob_registry_.get()) | 187 if (!blob_registry_.get()) |
181 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current())); | 188 blob_registry_.reset(new WebBlobRegistryImpl(WorkerThread::current())); |
182 return blob_registry_.get(); | 189 return blob_registry_.get(); |
183 } | 190 } |
OLD | NEW |