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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp

Issue 2658583006: scheduler: Make DOM window event tasks unthrottled (Closed)
Patch Set: Created 3 years, 11 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) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 : public GarbageCollectedFinalized<PostMessageTimer>, 97 : public GarbageCollectedFinalized<PostMessageTimer>,
98 public SuspendableTimer { 98 public SuspendableTimer {
99 USING_GARBAGE_COLLECTED_MIXIN(PostMessageTimer); 99 USING_GARBAGE_COLLECTED_MIXIN(PostMessageTimer);
100 100
101 public: 101 public:
102 PostMessageTimer(LocalDOMWindow& window, 102 PostMessageTimer(LocalDOMWindow& window,
103 MessageEvent* event, 103 MessageEvent* event,
104 PassRefPtr<SecurityOrigin> targetOrigin, 104 PassRefPtr<SecurityOrigin> targetOrigin,
105 std::unique_ptr<SourceLocation> location, 105 std::unique_ptr<SourceLocation> location,
106 UserGestureToken* userGestureToken) 106 UserGestureToken* userGestureToken)
107 : SuspendableTimer(window.document()), 107 : SuspendableTimer(window.document(), TaskType::Timer),
108 m_event(event), 108 m_event(event),
109 m_window(&window), 109 m_window(&window),
110 m_targetOrigin(targetOrigin), 110 m_targetOrigin(targetOrigin),
111 m_location(std::move(location)), 111 m_location(std::move(location)),
112 m_userGestureToken(userGestureToken), 112 m_userGestureToken(userGestureToken),
113 m_disposalAllowed(true) { 113 m_disposalAllowed(true) {
114 InspectorInstrumentation::asyncTaskScheduled(window.document(), 114 InspectorInstrumentation::asyncTaskScheduled(window.document(),
115 "postMessage", this); 115 "postMessage", this);
116 } 116 }
117 117
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 DOMWindow::trace(visitor); 1615 DOMWindow::trace(visitor);
1616 Supplementable<LocalDOMWindow>::trace(visitor); 1616 Supplementable<LocalDOMWindow>::trace(visitor);
1617 } 1617 }
1618 1618
1619 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { 1619 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) {
1620 visitor->traceWrappers(m_customElements); 1620 visitor->traceWrappers(m_customElements);
1621 DOMWindow::traceWrappers(visitor); 1621 DOMWindow::traceWrappers(visitor);
1622 } 1622 }
1623 1623
1624 } // namespace blink 1624 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/DOMTimer.cpp ('k') | third_party/WebKit/Source/core/frame/SuspendableTimer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698