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 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
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 11 matching lines...) Expand all
22 class ScriptPromiseResolver; 22 class ScriptPromiseResolver;
23 class ScriptState; 23 class ScriptState;
24 class WebServiceWorkerProvider; 24 class WebServiceWorkerProvider;
25 25
26 class ServiceWorkerRegistration final 26 class ServiceWorkerRegistration final
27 : public RefCountedGarbageCollectedEventTargetWithInlineData<ServiceWorkerRe gistration> 27 : public RefCountedGarbageCollectedEventTargetWithInlineData<ServiceWorkerRe gistration>
28 , public ActiveDOMObject 28 , public ActiveDOMObject
29 , public WebServiceWorkerRegistrationProxy 29 , public WebServiceWorkerRegistrationProxy
30 , public HeapSupplementable<ServiceWorkerRegistration> { 30 , public HeapSupplementable<ServiceWorkerRegistration> {
31 DEFINE_WRAPPERTYPEINFO(); 31 DEFINE_WRAPPERTYPEINFO();
32 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S erviceWorkerRegistration>); 32 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(ServiceWorkerRegistration);
33 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistration); 33 USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistration);
34 public: 34 public:
35 // EventTarget overrides. 35 // EventTarget overrides.
36 virtual const AtomicString& interfaceName() const override; 36 virtual const AtomicString& interfaceName() const override;
37 virtual ExecutionContext* executionContext() const override { return ActiveD OMObject::executionContext(); } 37 virtual ExecutionContext* executionContext() const override { return ActiveD OMObject::executionContext(); }
38 38
39 // WebServiceWorkerRegistrationProxy overrides. 39 // WebServiceWorkerRegistrationProxy overrides.
40 virtual void dispatchUpdateFoundEvent() override; 40 virtual void dispatchUpdateFoundEvent() override;
41 virtual void setInstalling(WebServiceWorker*) override; 41 virtual void setInstalling(WebServiceWorker*) override;
42 virtual void setWaiting(WebServiceWorker*) override; 42 virtual void setWaiting(WebServiceWorker*) override;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 RefPtrWillBeMember<ServiceWorker> m_installing; 79 RefPtrWillBeMember<ServiceWorker> m_installing;
80 RefPtrWillBeMember<ServiceWorker> m_waiting; 80 RefPtrWillBeMember<ServiceWorker> m_waiting;
81 RefPtrWillBeMember<ServiceWorker> m_active; 81 RefPtrWillBeMember<ServiceWorker> m_active;
82 82
83 bool m_stopped; 83 bool m_stopped;
84 }; 84 };
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // ServiceWorkerRegistration_h 88 #endif // ServiceWorkerRegistration_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainer.h ('k') | Source/modules/speech/SpeechRecognition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698