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

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

Issue 468753003: SW tests update (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 467133002 and fix test Created 6 years, 4 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 "core/dom/ActiveDOMObject.h" 8 #include "core/dom/ActiveDOMObject.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "modules/serviceworkers/ServiceWorker.h" 10 #include "modules/serviceworkers/ServiceWorker.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ScriptPromise unregister(ScriptState*); 56 ScriptPromise unregister(ScriptState*);
57 57
58 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatefound); 58 DEFINE_ATTRIBUTE_EVENT_LISTENER(updatefound);
59 59
60 virtual void trace(Visitor*) OVERRIDE; 60 virtual void trace(Visitor*) OVERRIDE;
61 61
62 private: 62 private:
63 static PassRefPtrWillBeRawPtr<ServiceWorkerRegistration> create(ExecutionCon text*, PassOwnPtr<WebServiceWorkerRegistration>); 63 static PassRefPtrWillBeRawPtr<ServiceWorkerRegistration> create(ExecutionCon text*, PassOwnPtr<WebServiceWorkerRegistration>);
64 ServiceWorkerRegistration(ExecutionContext*, PassOwnPtr<WebServiceWorkerRegi stration>); 64 ServiceWorkerRegistration(ExecutionContext*, PassOwnPtr<WebServiceWorkerRegi stration>);
65 65
66 // ActiveDOMObject overrides.
67 virtual bool hasPendingActivity() const OVERRIDE;
68 virtual void stop() OVERRIDE;
69
66 OwnPtr<WebServiceWorkerRegistration> m_outerRegistration; 70 OwnPtr<WebServiceWorkerRegistration> m_outerRegistration;
67 WebServiceWorkerProvider* m_provider; 71 WebServiceWorkerProvider* m_provider;
68 RefPtrWillBeMember<ServiceWorker> m_installing; 72 RefPtrWillBeMember<ServiceWorker> m_installing;
69 RefPtrWillBeMember<ServiceWorker> m_waiting; 73 RefPtrWillBeMember<ServiceWorker> m_waiting;
70 RefPtrWillBeMember<ServiceWorker> m_active; 74 RefPtrWillBeMember<ServiceWorker> m_active;
75
76 bool m_stopped;
71 }; 77 };
72 78
73 } // namespace blink 79 } // namespace blink
74 80
75 #endif // ServiceWorkerRegistration_h 81 #endif // ServiceWorkerRegistration_h
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/serviceworker/waiting.html ('k') | Source/modules/serviceworkers/ServiceWorkerRegistration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698