OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "WebKit.h" | 32 #include "WebKit.h" |
33 | 33 |
34 #include "IDBFactoryBackendProxy.h" | 34 #include "IndexedDBClientImpl.h" |
35 #include "RuntimeEnabledFeatures.h" | 35 #include "RuntimeEnabledFeatures.h" |
36 #include "WebMediaPlayerClientImpl.h" | 36 #include "WebMediaPlayerClientImpl.h" |
37 #include "bindings/v8/V8Binding.h" | 37 #include "bindings/v8/V8Binding.h" |
38 #include "bindings/v8/V8Initializer.h" | 38 #include "bindings/v8/V8Initializer.h" |
39 #include "bindings/v8/V8RecursionScope.h" | 39 #include "bindings/v8/V8RecursionScope.h" |
40 #include "core/Init.h" | 40 #include "core/Init.h" |
41 #include "core/dom/Microtask.h" | 41 #include "core/dom/Microtask.h" |
42 #include "core/page/Page.h" | 42 #include "core/page/Page.h" |
43 #include "core/frame/Settings.h" | 43 #include "core/frame/Settings.h" |
44 #include "core/workers/WorkerGlobalScopeProxy.h" | 44 #include "core/workers/WorkerGlobalScopeProxy.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 // There are some code paths (for example, running WebKit in the browser | 179 // There are some code paths (for example, running WebKit in the browser |
180 // process and calling into LocalStorage before anything else) where the | 180 // process and calling into LocalStorage before anything else) where the |
181 // UTF8 string encoding tables are used on a background thread before | 181 // UTF8 string encoding tables are used on a background thread before |
182 // they're set up. This is a problem because their set up routines assert | 182 // they're set up. This is a problem because their set up routines assert |
183 // they're running on the main WebKitThread. It might be possible to make | 183 // they're running on the main WebKitThread. It might be possible to make |
184 // the initialization thread-safe, but given that so many code paths use | 184 // the initialization thread-safe, but given that so many code paths use |
185 // this, initializing this lazily probably doesn't buy us much. | 185 // this, initializing this lazily probably doesn't buy us much. |
186 WTF::UTF8Encoding(); | 186 WTF::UTF8Encoding(); |
187 | 187 |
188 WebCore::setIDBFactoryBackendInterfaceCreateFunction(blink::IDBFactoryBacken
dProxy::create); | 188 WebCore::setIndexedDBClientCreateFunction(blink::IndexedDBClientImpl::create
); |
189 | 189 |
190 WebCore::MediaPlayer::setMediaEngineCreateFunction(blink::WebMediaPlayerClie
ntImpl::create); | 190 WebCore::MediaPlayer::setMediaEngineCreateFunction(blink::WebMediaPlayerClie
ntImpl::create); |
191 } | 191 } |
192 | 192 |
193 void shutdown() | 193 void shutdown() |
194 { | 194 { |
195 // currentThread will always be non-null in production, but can be null in C
hromium unit tests. | 195 // currentThread will always be non-null in production, but can be null in C
hromium unit tests. |
196 if (Platform::current()->currentThread()) { | 196 if (Platform::current()->currentThread()) { |
197 ASSERT(s_endOfTaskRunner); | 197 ASSERT(s_endOfTaskRunner); |
198 #ifndef NDEBUG | 198 #ifndef NDEBUG |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 channel->state = WTFLogChannelOn; | 262 channel->state = WTFLogChannelOn; |
263 #endif // !LOG_DISABLED | 263 #endif // !LOG_DISABLED |
264 } | 264 } |
265 | 265 |
266 void resetPluginCache(bool reloadPages) | 266 void resetPluginCache(bool reloadPages) |
267 { | 267 { |
268 WebCore::Page::refreshPlugins(reloadPages); | 268 WebCore::Page::refreshPlugins(reloadPages); |
269 } | 269 } |
270 | 270 |
271 } // namespace blink | 271 } // namespace blink |
OLD | NEW |