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

Side by Side Diff: third_party/WebKit/Source/core/frame/DOMTimer.h

Issue 1340343003: scheduler: Implement WebFrameScheduler and WebPageScheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + fixed gn build. Created 5 years, 2 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 { 72 {
73 return adoptRefWillBeNoop(new DOMTimer(context, action, timeout, singleS hot, timeoutID)); 73 return adoptRefWillBeNoop(new DOMTimer(context, action, timeout, singleS hot, timeoutID));
74 } 74 }
75 75
76 DOMTimer(ExecutionContext*, PassOwnPtrWillBeRawPtr<ScheduledAction>, int int erval, bool singleShot, int timeoutID); 76 DOMTimer(ExecutionContext*, PassOwnPtrWillBeRawPtr<ScheduledAction>, int int erval, bool singleShot, int timeoutID);
77 void fired() override; 77 void fired() override;
78 78
79 // Retuns timer fire time rounded to the next multiple of timer alignment in terval. 79 // Retuns timer fire time rounded to the next multiple of timer alignment in terval.
80 double alignedFireTime(double) const override; 80 double alignedFireTime(double) const override;
81 81
82 WebTaskRunner* timerTaskRunner() override;
83
82 int m_timeoutID; 84 int m_timeoutID;
83 int m_nestingLevel; 85 int m_nestingLevel;
84 OwnPtrWillBeMember<ScheduledAction> m_action; 86 OwnPtrWillBeMember<ScheduledAction> m_action;
85 RefPtr<UserGestureToken> m_userGestureToken; 87 RefPtr<UserGestureToken> m_userGestureToken;
86 }; 88 };
87 89
88 } // namespace blink 90 } // namespace blink
89 91
90 #endif // DOMTimer_h 92 #endif // DOMTimer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/frame/DOMTimer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698