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 21 matching lines...) Expand all Loading... |
32 #include "WebKit.h" | 32 #include "WebKit.h" |
33 | 33 |
34 #include "IDBFactoryBackendProxy.h" | 34 #include "IDBFactoryBackendProxy.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/frame/Settings.h" |
| 43 #include "core/html/StableState.h" |
42 #include "core/page/Page.h" | 44 #include "core/page/Page.h" |
43 #include "core/frame/Settings.h" | |
44 #include "core/workers/WorkerGlobalScopeProxy.h" | 45 #include "core/workers/WorkerGlobalScopeProxy.h" |
45 #include "heap/Heap.h" | 46 #include "heap/Heap.h" |
46 #include "heap/glue/MessageLoopInterruptor.h" | 47 #include "heap/glue/MessageLoopInterruptor.h" |
47 #include "heap/glue/PendingGCRunner.h" | 48 #include "heap/glue/PendingGCRunner.h" |
48 #include "platform/LayoutTestSupport.h" | 49 #include "platform/LayoutTestSupport.h" |
49 #include "platform/Logging.h" | 50 #include "platform/Logging.h" |
50 #include "platform/graphics/ImageDecodingStore.h" | 51 #include "platform/graphics/ImageDecodingStore.h" |
51 #include "platform/graphics/media/MediaPlayer.h" | 52 #include "platform/graphics/media/MediaPlayer.h" |
52 #include "public/platform/Platform.h" | 53 #include "public/platform/Platform.h" |
53 #include "public/platform/WebPrerenderingSupport.h" | 54 #include "public/platform/WebPrerenderingSupport.h" |
54 #include "public/platform/WebThread.h" | 55 #include "public/platform/WebThread.h" |
55 #include "wtf/Assertions.h" | 56 #include "wtf/Assertions.h" |
56 #include "wtf/CryptographicallyRandomNumber.h" | 57 #include "wtf/CryptographicallyRandomNumber.h" |
57 #include "wtf/MainThread.h" | 58 #include "wtf/MainThread.h" |
58 #include "wtf/WTF.h" | 59 #include "wtf/WTF.h" |
59 #include "wtf/text/AtomicString.h" | 60 #include "wtf/text/AtomicString.h" |
60 #include "wtf/text/TextEncoding.h" | 61 #include "wtf/text/TextEncoding.h" |
61 #include <v8.h> | 62 #include <v8.h> |
62 | 63 |
63 namespace blink { | 64 namespace blink { |
64 | 65 |
65 namespace { | 66 namespace { |
66 | 67 |
67 class EndOfTaskRunner : public WebThread::TaskObserver { | 68 class EndOfTaskRunner : public WebThread::TaskObserver { |
68 public: | 69 public: |
69 virtual void willProcessTask() { } | 70 virtual void willProcessTask() { } |
70 virtual void didProcessTask() | 71 virtual void didProcessTask() |
71 { | 72 { |
72 WebCore::Microtask::performCheckpoint(); | 73 WebCore::Microtask::performCheckpoint(); |
| 74 WebCore::StableState::provide(); |
73 } | 75 } |
74 }; | 76 }; |
75 | 77 |
76 } // namespace | 78 } // namespace |
77 | 79 |
78 static WebThread::TaskObserver* s_endOfTaskRunner = 0; | 80 static WebThread::TaskObserver* s_endOfTaskRunner = 0; |
79 static WebThread::TaskObserver* s_pendingGCRunner = 0; | 81 static WebThread::TaskObserver* s_pendingGCRunner = 0; |
80 static WebCore::ThreadState::Interruptor* s_messageLoopInterruptor = 0; | 82 static WebCore::ThreadState::Interruptor* s_messageLoopInterruptor = 0; |
81 static WebCore::ThreadState::Interruptor* s_isolateInterruptor = 0; | 83 static WebCore::ThreadState::Interruptor* s_isolateInterruptor = 0; |
82 | 84 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 channel->state = WTFLogChannelOn; | 253 channel->state = WTFLogChannelOn; |
252 #endif // !LOG_DISABLED | 254 #endif // !LOG_DISABLED |
253 } | 255 } |
254 | 256 |
255 void resetPluginCache(bool reloadPages) | 257 void resetPluginCache(bool reloadPages) |
256 { | 258 { |
257 WebCore::Page::refreshPlugins(reloadPages); | 259 WebCore::Page::refreshPlugins(reloadPages); |
258 } | 260 } |
259 | 261 |
260 } // namespace blink | 262 } // namespace blink |
OLD | NEW |