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

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

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 StashedPortCollection_h 5 #ifndef StashedPortCollection_h
6 #define StashedPortCollection_h 6 #define StashedPortCollection_h
7 7
8 #include "core/dom/ContextLifecycleObserver.h" 8 #include "core/dom/ContextLifecycleObserver.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
11 #include "modules/serviceworkers/StashedMessagePort.h" 11 #include "modules/serviceworkers/StashedMessagePort.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 #include "wtf/Forward.h" 13 #include "wtf/Forward.h"
14 14
15 namespace blink { 15 namespace blink {
16 class ScriptState; 16 class ScriptState;
17 17
18 class MODULES_EXPORT StashedPortCollection final 18 class MODULES_EXPORT StashedPortCollection final
19 : public RefCountedGarbageCollectedEventTargetWithInlineData<StashedPortColl ection> 19 : public RefCountedGarbageCollectedEventTargetWithInlineData<StashedPortColl ection>
20 , public ContextLifecycleObserver { 20 , public ContextLifecycleObserver {
21 DEFINE_WRAPPERTYPEINFO(); 21 DEFINE_WRAPPERTYPEINFO();
22 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(StashedPortCollection); 22 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(StashedPortCollection);
23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StashedPortCollection); 23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StashedPortCollection);
24 WTF_MAKE_NONCOPYABLE(StashedPortCollection); 24 WTF_MAKE_NONCOPYABLE(StashedPortCollection);
25 public: 25 public:
26 static StashedPortCollection* create(ExecutionContext*); 26 static StashedPortCollection* create(ExecutionContext*);
27 virtual ~StashedPortCollection(); 27 ~StashedPortCollection() override;
28 28
29 void addPorts(const StashedMessagePortArray&); 29 void addPorts(const StashedMessagePortArray&);
30 30
31 // StashedPortCollection.idl 31 // StashedPortCollection.idl
32 StashedMessagePort* add(ScriptState*, const String& name, MessagePort*); 32 StashedMessagePort* add(ScriptState*, const String& name, MessagePort*);
33 33
34 // EventTarget overrides. 34 // EventTarget overrides.
35 const AtomicString& interfaceName() const override; 35 const AtomicString& interfaceName() const override;
36 ExecutionContext* executionContext() const override; 36 ExecutionContext* executionContext() const override;
37 37
38 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 38 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
39 39
40 DECLARE_VIRTUAL_TRACE(); 40 DECLARE_VIRTUAL_TRACE();
41 41
42 private: 42 private:
43 explicit StashedPortCollection(ExecutionContext*); 43 explicit StashedPortCollection(ExecutionContext*);
44 44
45 StashedMessagePortArray m_ports; 45 StashedMessagePortArray m_ports;
46 }; 46 };
47 47
48 } // namespace blink 48 } // namespace blink
49 49
50 #endif // StashedPortCollection_h 50 #endif // StashedPortCollection_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/StashedMessagePort.h ('k') | Source/modules/serviceworkers/WaitUntilObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698