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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 // There are some code paths (for example, running WebKit in the browser | 183 // There are some code paths (for example, running WebKit in the browser |
184 // process and calling into LocalStorage before anything else) where the | 184 // process and calling into LocalStorage before anything else) where the |
185 // UTF8 string encoding tables are used on a background thread before | 185 // UTF8 string encoding tables are used on a background thread before |
186 // they're set up. This is a problem because their set up routines assert | 186 // they're set up. This is a problem because their set up routines assert |
187 // they're running on the main WebKitThread. It might be possible to make | 187 // they're running on the main WebKitThread. It might be possible to make |
188 // the initialization thread-safe, but given that so many code paths use | 188 // the initialization thread-safe, but given that so many code paths use |
189 // this, initializing this lazily probably doesn't buy us much. | 189 // this, initializing this lazily probably doesn't buy us much. |
190 WTF::UTF8Encoding(); | 190 WTF::UTF8Encoding(); |
191 | 191 |
192 WebCore::setIDBFactoryBackendInterfaceCreateFunction(blink::IDBFactoryBacken
dProxy::create); | 192 WebCore::setIndexedDBClientCreateFunction(blink::IndexedDBClientImpl::create
); |
193 | 193 |
194 WebCore::MediaPlayer::setMediaEngineCreateFunction(blink::WebMediaPlayerClie
ntImpl::create); | 194 WebCore::MediaPlayer::setMediaEngineCreateFunction(blink::WebMediaPlayerClie
ntImpl::create); |
195 } | 195 } |
196 | 196 |
197 void shutdown() | 197 void shutdown() |
198 { | 198 { |
199 // currentThread will always be non-null in production, but can be null in C
hromium unit tests. | 199 // currentThread will always be non-null in production, but can be null in C
hromium unit tests. |
200 if (Platform::current()->currentThread()) { | 200 if (Platform::current()->currentThread()) { |
201 ASSERT(s_endOfTaskRunner); | 201 ASSERT(s_endOfTaskRunner); |
202 #ifndef NDEBUG | 202 #ifndef NDEBUG |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 channel->state = WTFLogChannelOn; | 273 channel->state = WTFLogChannelOn; |
274 #endif // !LOG_DISABLED | 274 #endif // !LOG_DISABLED |
275 } | 275 } |
276 | 276 |
277 void resetPluginCache(bool reloadPages) | 277 void resetPluginCache(bool reloadPages) |
278 { | 278 { |
279 WebCore::Page::refreshPlugins(reloadPages); | 279 WebCore::Page::refreshPlugins(reloadPages); |
280 } | 280 } |
281 | 281 |
282 } // namespace blink | 282 } // namespace blink |
OLD | NEW |