Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "bindings/core/v8/SerializedScriptValueFactory.h" | |
|
chasej
2015/07/02 20:45:28
Is this include needed? It doesn't seem so for th
Marijn Kruisselbrink
2015/07/07 16:42:49
No, it's not needed here. Must have been a leftove
| |
| 9 #include "core/dom/ContextLifecycleObserver.h" | 10 #include "core/dom/ContextLifecycleObserver.h" |
| 10 #include "core/events/EventTarget.h" | 11 #include "core/events/EventTarget.h" |
| 11 #include "modules/ModulesExport.h" | 12 #include "modules/ModulesExport.h" |
| 12 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 14 #include "public/platform/modules/navigator_services/WebServicePortCallbacks.h" | |
| 13 #include "public/platform/modules/navigator_services/WebServicePortProvider.h" | 15 #include "public/platform/modules/navigator_services/WebServicePortProvider.h" |
| 14 #include "public/platform/modules/navigator_services/WebServicePortProviderClien t.h" | 16 #include "public/platform/modules/navigator_services/WebServicePortProviderClien t.h" |
| 15 #include "wtf/RefCounted.h" | 17 #include "wtf/RefCounted.h" |
| 16 | 18 |
| 17 namespace blink { | 19 namespace blink { |
| 18 | 20 |
| 19 class ServicePort; | 21 class ServicePort; |
| 20 class ServicePortConnectOptions; | 22 class ServicePortConnectOptions; |
| 21 class ServicePortMatchOptions; | 23 class ServicePortMatchOptions; |
| 22 | 24 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 50 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); | 52 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); |
| 51 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); | 53 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); |
| 52 | 54 |
| 53 // EventTarget overrides. | 55 // EventTarget overrides. |
| 54 const AtomicString& interfaceName() const override; | 56 const AtomicString& interfaceName() const override; |
| 55 ExecutionContext* executionContext() const override; | 57 ExecutionContext* executionContext() const override; |
| 56 | 58 |
| 57 // WebServicePortProviderClient overrides. | 59 // WebServicePortProviderClient overrides. |
| 58 void postMessage(WebServicePortID, const WebString&, const WebMessagePortCha nnelArray&) override; | 60 void postMessage(WebServicePortID, const WebString&, const WebMessagePortCha nnelArray&) override; |
| 59 | 61 |
| 62 void dispatchConnectEvent(PassOwnPtr<WebServicePortConnectEventCallbacks>, c onst WebURL& targetURL, const WebString& origin, WebServicePortID); | |
| 63 | |
| 60 DECLARE_VIRTUAL_TRACE(); | 64 DECLARE_VIRTUAL_TRACE(); |
| 61 | 65 |
| 62 private: | 66 private: |
| 63 explicit ServicePortCollection(ExecutionContext*); | 67 explicit ServicePortCollection(ExecutionContext*); |
| 64 | 68 |
| 65 OwnPtr<WebServicePortProvider> m_provider; | 69 OwnPtr<WebServicePortProvider> m_provider; |
| 66 HeapVector<Member<ServicePort>> m_ports; | 70 HeapVector<Member<ServicePort>> m_ports; |
| 67 }; | 71 }; |
| 68 | 72 |
| 69 } // namespace blink | 73 } // namespace blink |
| 70 | 74 |
| 71 #endif // ServicePortCollection_h | 75 #endif // ServicePortCollection_h |
| OLD | NEW |