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

Side by Side Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.cpp

Issue 2843503002: scheduler: Move WebFrameScheduler and WebScheduler into Blink (Closed)
Patch Set: Build fix Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Julien Chaffraix <jchaffraix@webkit.org> All right 2 * Copyright (C) 2010 Julien Chaffraix <jchaffraix@webkit.org> All right
3 * reserved. 3 * reserved.
4 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 4 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 14 matching lines...) Expand all
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #include "core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h" 28 #include "core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h"
29 29
30 #include "core/EventTypeNames.h" 30 #include "core/EventTypeNames.h"
31 #include "core/events/ProgressEvent.h" 31 #include "core/events/ProgressEvent.h"
32 #include "core/inspector/InspectorTraceEvents.h" 32 #include "core/inspector/InspectorTraceEvents.h"
33 #include "core/probe/CoreProbes.h" 33 #include "core/probe/CoreProbes.h"
34 #include "core/xmlhttprequest/XMLHttpRequest.h" 34 #include "core/xmlhttprequest/XMLHttpRequest.h"
35 #include "platform/scheduler/child/web_scheduler.h"
35 #include "platform/wtf/Assertions.h" 36 #include "platform/wtf/Assertions.h"
36 #include "platform/wtf/text/AtomicString.h" 37 #include "platform/wtf/text/AtomicString.h"
37 #include "public/platform/Platform.h" 38 #include "public/platform/Platform.h"
38 #include "public/platform/WebScheduler.h"
39 #include "public/platform/WebThread.h" 39 #include "public/platform/WebThread.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 static const double kMinimumProgressEventDispatchingIntervalInSeconds = 43 static const double kMinimumProgressEventDispatchingIntervalInSeconds =
44 .05; // 50 ms per specification. 44 .05; // 50 ms per specification.
45 45
46 XMLHttpRequestProgressEventThrottle::DeferredEvent::DeferredEvent() { 46 XMLHttpRequestProgressEventThrottle::DeferredEvent::DeferredEvent() {
47 Clear(); 47 Clear();
48 } 48 }
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // over the list of SuspendableObjects to resume them, and any activated JS 185 // over the list of SuspendableObjects to resume them, and any activated JS
186 // event-handler could insert new SuspendableObjects to the list. 186 // event-handler could insert new SuspendableObjects to the list.
187 StartOneShot(0, BLINK_FROM_HERE); 187 StartOneShot(0, BLINK_FROM_HERE);
188 } 188 }
189 189
190 DEFINE_TRACE(XMLHttpRequestProgressEventThrottle) { 190 DEFINE_TRACE(XMLHttpRequestProgressEventThrottle) {
191 visitor->Trace(target_); 191 visitor->Trace(target_);
192 } 192 }
193 193
194 } // namespace blink 194 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698