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

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

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 // 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 #ifndef ServiceWorkerRegistration_h 5 #ifndef ServiceWorkerRegistration_h
6 #define ServiceWorkerRegistration_h 6 #define ServiceWorkerRegistration_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "core/dom/ContextLifecycleObserver.h" 10 #include "core/dom/ContextLifecycleObserver.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 DECLARE_VIRTUAL_TRACE(); 85 DECLARE_VIRTUAL_TRACE();
86 86
87 private: 87 private:
88 ServiceWorkerRegistration( 88 ServiceWorkerRegistration(
89 ExecutionContext*, 89 ExecutionContext*,
90 std::unique_ptr<WebServiceWorkerRegistration::Handle>); 90 std::unique_ptr<WebServiceWorkerRegistration::Handle>);
91 void dispose(); 91 void dispose();
92 92
93 // ContextLifecycleObserver overrides. 93 // ContextLifecycleObserver overrides.
94 void contextDestroyed() override; 94 void contextDestroyed(ExecutionContext*) override;
95 95
96 // A handle to the registration representation in the embedder. 96 // A handle to the registration representation in the embedder.
97 std::unique_ptr<WebServiceWorkerRegistration::Handle> m_handle; 97 std::unique_ptr<WebServiceWorkerRegistration::Handle> m_handle;
98 98
99 Member<ServiceWorker> m_installing; 99 Member<ServiceWorker> m_installing;
100 Member<ServiceWorker> m_waiting; 100 Member<ServiceWorker> m_waiting;
101 Member<ServiceWorker> m_active; 101 Member<ServiceWorker> m_active;
102 Member<NavigationPreloadManager> m_navigationPreload; 102 Member<NavigationPreloadManager> m_navigationPreload;
103 103
104 bool m_stopped; 104 bool m_stopped;
(...skipping 14 matching lines...) Expand all
119 registrations.push_back( 119 registrations.push_back(
120 ServiceWorkerRegistration::take(resolver, std::move(registration))); 120 ServiceWorkerRegistration::take(resolver, std::move(registration)));
121 } 121 }
122 return registrations; 122 return registrations;
123 } 123 }
124 }; 124 };
125 125
126 } // namespace blink 126 } // namespace blink
127 127
128 #endif // ServiceWorkerRegistration_h 128 #endif // ServiceWorkerRegistration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698