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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 118
119 MessageEvent* event() const { return m_event; } 119 MessageEvent* event() const { return m_event; }
120 SecurityOrigin* targetOrigin() const { return m_targetOrigin.get(); } 120 SecurityOrigin* targetOrigin() const { return m_targetOrigin.get(); }
121 std::unique_ptr<SourceLocation> takeLocation() { 121 std::unique_ptr<SourceLocation> takeLocation() {
122 return std::move(m_location); 122 return std::move(m_location);
123 } 123 }
124 UserGestureToken* userGestureToken() const { 124 UserGestureToken* userGestureToken() const {
125 return m_userGestureToken.get(); 125 return m_userGestureToken.get();
126 } 126 }
127 void contextDestroyed() override { 127 void contextDestroyed(ExecutionContext* destroyedContext) override {
128 SuspendableTimer::contextDestroyed(); 128 SuspendableTimer::contextDestroyed(destroyedContext);
129 129
130 if (m_disposalAllowed) 130 if (m_disposalAllowed)
131 dispose(); 131 dispose();
132 } 132 }
133 133
134 // Eager finalization is needed to promptly stop this timer object. 134 // Eager finalization is needed to promptly stop this timer object.
135 // (see DOMTimer comment for more.) 135 // (see DOMTimer comment for more.)
136 EAGERLY_FINALIZE(); 136 EAGERLY_FINALIZE();
137 DEFINE_INLINE_VIRTUAL_TRACE() { 137 DEFINE_INLINE_VIRTUAL_TRACE() {
138 visitor->trace(m_event); 138 visitor->trace(m_event);
(...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 DOMWindow::trace(visitor); 1629 DOMWindow::trace(visitor);
1630 Supplementable<LocalDOMWindow>::trace(visitor); 1630 Supplementable<LocalDOMWindow>::trace(visitor);
1631 } 1631 }
1632 1632
1633 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { 1633 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) {
1634 visitor->traceWrappers(m_customElements); 1634 visitor->traceWrappers(m_customElements);
1635 DOMWindow::traceWrappers(visitor); 1635 DOMWindow::traceWrappers(visitor);
1636 } 1636 }
1637 1637
1638 } // namespace blink 1638 } // 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