Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1690)

Side by Side Diff: Source/web/WebKit.cpp

Issue 142193004: Create & use microtask work queue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: cr changes Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 namespace blink { 63 namespace blink {
64 64
65 namespace { 65 namespace {
66 66
67 class EndOfTaskRunner : public WebThread::TaskObserver { 67 class EndOfTaskRunner : public WebThread::TaskObserver {
68 public: 68 public:
69 virtual void willProcessTask() { } 69 virtual void willProcessTask() { }
70 virtual void didProcessTask() 70 virtual void didProcessTask()
71 { 71 {
72 WebCore::Microtask::performCheckpoint(); 72 WebCore::Microtask::performMicrotaskCheckpoint();
73 } 73 }
74 }; 74 };
75 75
76 } // namespace 76 } // namespace
77 77
78 static WebThread::TaskObserver* s_endOfTaskRunner = 0; 78 static WebThread::TaskObserver* s_endOfTaskRunner = 0;
79 static WebThread::TaskObserver* s_pendingGCRunner = 0; 79 static WebThread::TaskObserver* s_pendingGCRunner = 0;
80 static WebCore::ThreadState::Interruptor* s_messageLoopInterruptor = 0; 80 static WebCore::ThreadState::Interruptor* s_messageLoopInterruptor = 0;
81 static WebCore::ThreadState::Interruptor* s_isolateInterruptor = 0; 81 static WebCore::ThreadState::Interruptor* s_isolateInterruptor = 0;
82 82
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 channel->state = WTFLogChannelOn; 251 channel->state = WTFLogChannelOn;
252 #endif // !LOG_DISABLED 252 #endif // !LOG_DISABLED
253 } 253 }
254 254
255 void resetPluginCache(bool reloadPages) 255 void resetPluginCache(bool reloadPages)
256 { 256 {
257 WebCore::Page::refreshPlugins(reloadPages); 257 WebCore::Page::refreshPlugins(reloadPages);
258 } 258 }
259 259
260 } // namespace blink 260 } // namespace blink
OLDNEW
« Source/bindings/v8/V8RecursionScope.cpp ('K') | « Source/core/html/parser/HTMLScriptRunner.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698