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

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

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // ServicePortCollection.idl 46 // ServicePortCollection.idl
47 ScriptPromise connect(ScriptState*, const String& url, const ServicePortConn ectOptions&, ExceptionState&); 47 ScriptPromise connect(ScriptState*, const String& url, const ServicePortConn ectOptions&, ExceptionState&);
48 ScriptPromise match(ScriptState*, const ServicePortMatchOptions&); 48 ScriptPromise match(ScriptState*, const ServicePortMatchOptions&);
49 ScriptPromise matchAll(ScriptState*, const ServicePortMatchOptions&); 49 ScriptPromise matchAll(ScriptState*, const ServicePortMatchOptions&);
50 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect); 50 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect);
51 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 51 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
52 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); 52 DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
53 53
54 // EventTarget overrides. 54 // EventTarget overrides.
55 const AtomicString& interfaceName() const override; 55 const AtomicString& interfaceName() const override;
56 ExecutionContext* executionContext() const override; 56 ExecutionContext* getExecutionContext() const override;
57 57
58 // WebServicePortProviderClient overrides. 58 // WebServicePortProviderClient overrides.
59 void postMessage(WebServicePortID, const WebString&, const WebMessagePortCha nnelArray&) override; 59 void postMessage(WebServicePortID, const WebString&, const WebMessagePortCha nnelArray&) override;
60 60
61 void dispatchConnectEvent(PassOwnPtr<WebServicePortConnectEventCallbacks>, c onst WebURL& targetURL, const WebString& origin, WebServicePortID); 61 void dispatchConnectEvent(PassOwnPtr<WebServicePortConnectEventCallbacks>, c onst WebURL& targetURL, const WebString& origin, WebServicePortID);
62 62
63 DECLARE_VIRTUAL_TRACE(); 63 DECLARE_VIRTUAL_TRACE();
64 64
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