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

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

Issue 2567913002: Rename ActiveDOMObject to SuspendableObject (Closed)
Patch Set: Created 4 years 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Creates a new timer owned by the ExecutionContext, starts it and returns 46 // Creates a new timer owned by the ExecutionContext, starts it and returns
47 // its ID. 47 // its ID.
48 static int install(ExecutionContext*, 48 static int install(ExecutionContext*,
49 ScheduledAction*, 49 ScheduledAction*,
50 int timeout, 50 int timeout,
51 bool singleShot); 51 bool singleShot);
52 static void removeByID(ExecutionContext*, int timeoutID); 52 static void removeByID(ExecutionContext*, int timeoutID);
53 53
54 ~DOMTimer() override; 54 ~DOMTimer() override;
55 55
56 // ActiveDOMObject 56 // SuspendableObject
57 void contextDestroyed() override; 57 void contextDestroyed() override;
58 58
59 // Eager finalization is needed to promptly stop this Timer object. 59 // Eager finalization is needed to promptly stop this Timer object.
60 // Otherwise timer events might fire at an object that's slated for 60 // Otherwise timer events might fire at an object that's slated for
61 // destruction (when lazily swept), but some of its members (m_action) may 61 // destruction (when lazily swept), but some of its members (m_action) may
62 // already have been finalized & must not be accessed. 62 // already have been finalized & must not be accessed.
63 EAGERLY_FINALIZE(); 63 EAGERLY_FINALIZE();
64 DECLARE_VIRTUAL_TRACE(); 64 DECLARE_VIRTUAL_TRACE();
65 65
66 void stop() override; 66 void stop() override;
(...skipping 20 matching lines...) Expand all
87 87
88 int m_timeoutID; 88 int m_timeoutID;
89 int m_nestingLevel; 89 int m_nestingLevel;
90 Member<ScheduledAction> m_action; 90 Member<ScheduledAction> m_action;
91 RefPtr<UserGestureToken> m_userGestureToken; 91 RefPtr<UserGestureToken> m_userGestureToken;
92 }; 92 };
93 93
94 } // namespace blink 94 } // namespace blink
95 95
96 #endif // DOMTimer_h 96 #endif // DOMTimer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698