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

Side by Side Diff: third_party/WebKit/Source/modules/navigatorconnect/ServicePortCollection.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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 ServicePortCollection_h 5 #ifndef ServicePortCollection_h
6 #define ServicePortCollection_h 6 #define ServicePortCollection_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "core/dom/ContextLifecycleObserver.h" 9 #include "core/dom/ContextLifecycleObserver.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
(...skipping 10 matching lines...) Expand all
21 class ServicePortConnectOptions; 21 class ServicePortConnectOptions;
22 class ServicePortMatchOptions; 22 class ServicePortMatchOptions;
23 23
24 class MODULES_EXPORT ServicePortCollection final 24 class MODULES_EXPORT ServicePortCollection final
25 : public RefCountedGarbageCollectedEventTargetWithInlineData<ServicePortColl ection> 25 : public RefCountedGarbageCollectedEventTargetWithInlineData<ServicePortColl ection>
26 , public ContextLifecycleObserver 26 , public ContextLifecycleObserver
27 , public WebServicePortProviderClient { 27 , public WebServicePortProviderClient {
28 DEFINE_WRAPPERTYPEINFO(); 28 DEFINE_WRAPPERTYPEINFO();
29 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(ServicePortCollection); 29 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(ServicePortCollection);
30 WTF_MAKE_NONCOPYABLE(ServicePortCollection); 30 WTF_MAKE_NONCOPYABLE(ServicePortCollection);
31 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ServicePortCollection); 31 USING_GARBAGE_COLLECTED_MIXIN(ServicePortCollection);
32 public: 32 public:
33 static ServicePortCollection* create(ExecutionContext*); 33 static ServicePortCollection* create(ExecutionContext*);
34 ~ServicePortCollection() override; 34 ~ServicePortCollection() override;
35 35
36 // Adds a port to this collection to keep track of it and allow delivering 36 // Adds a port to this collection to keep track of it and allow delivering
37 // events related to it. 37 // events related to it.
38 void addPort(ServicePort*); 38 void addPort(ServicePort*);
39 39
40 // Called when a port is closed to signal the WebServicePortProvider as well 40 // Called when a port is closed to signal the WebServicePortProvider as well
41 // as remove the port from this collection. 41 // as remove the port from this collection.
(...skipping 23 matching lines...) Expand all
65 private: 65 private:
66 explicit ServicePortCollection(ExecutionContext*); 66 explicit ServicePortCollection(ExecutionContext*);
67 67
68 OwnPtr<WebServicePortProvider> m_provider; 68 OwnPtr<WebServicePortProvider> m_provider;
69 HeapVector<Member<ServicePort>> m_ports; 69 HeapVector<Member<ServicePort>> m_ports;
70 }; 70 };
71 71
72 } // namespace blink 72 } // namespace blink
73 73
74 #endif // ServicePortCollection_h 74 #endif // ServicePortCollection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698