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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp

Issue 2366253002: Remove ActiveDOMObject::stop() (Closed)
Patch Set: temp Created 4 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/serviceworkers/ServiceWorkerRegistration.h" 5 #include "modules/serviceworkers/ServiceWorkerRegistration.h"
6 6
7 #include "bindings/core/v8/CallbackPromiseAdapter.h" 7 #include "bindings/core/v8/CallbackPromiseAdapter.h"
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptState.h" 9 #include "bindings/core/v8/ScriptState.h"
10 #include "core/dom/DOMException.h" 10 #include "core/dom/DOMException.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 DEFINE_TRACE(ServiceWorkerRegistration) { 141 DEFINE_TRACE(ServiceWorkerRegistration) {
142 visitor->trace(m_installing); 142 visitor->trace(m_installing);
143 visitor->trace(m_waiting); 143 visitor->trace(m_waiting);
144 visitor->trace(m_active); 144 visitor->trace(m_active);
145 EventTargetWithInlineData::trace(visitor); 145 EventTargetWithInlineData::trace(visitor);
146 ActiveDOMObject::trace(visitor); 146 ActiveDOMObject::trace(visitor);
147 Supplementable<ServiceWorkerRegistration>::trace(visitor); 147 Supplementable<ServiceWorkerRegistration>::trace(visitor);
148 } 148 }
149 149
150 void ServiceWorkerRegistration::stop() { 150 void ServiceWorkerRegistration::contextDestroyed() {
151 if (m_stopped) 151 if (m_stopped)
152 return; 152 return;
153 m_stopped = true; 153 m_stopped = true;
154 m_handle->registration()->proxyStopped(); 154 m_handle->registration()->proxyStopped();
155 } 155 }
156 156
157 } // namespace blink 157 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698