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 PresentationReceiver_h | 5 #ifndef PresentationReceiver_h |
6 #define PresentationReceiver_h | 6 #define PresentationReceiver_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptPromiseProperty.h" | 9 #include "bindings/core/v8/ScriptPromiseProperty.h" |
10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 Member<DOMException>>; | 36 Member<DOMException>>; |
37 | 37 |
38 public: | 38 public: |
39 explicit PresentationReceiver(LocalFrame*, WebPresentationClient*); | 39 explicit PresentationReceiver(LocalFrame*, WebPresentationClient*); |
40 ~PresentationReceiver() = default; | 40 ~PresentationReceiver() = default; |
41 | 41 |
42 // PresentationReceiver.idl implementation | 42 // PresentationReceiver.idl implementation |
43 ScriptPromise connectionList(ScriptState*); | 43 ScriptPromise connectionList(ScriptState*); |
44 | 44 |
45 // Implementation of WebPresentationController. | 45 // Implementation of WebPresentationController. |
46 void onReceiverConnectionAvailable( | 46 WebPresentationConnection* onReceiverConnectionAvailable( |
47 const WebPresentationSessionInfo&) override; | 47 const WebPresentationSessionInfo&) override; |
48 void registerConnection(PresentationConnection*); | 48 void registerConnection(PresentationConnection*); |
49 | 49 |
50 DECLARE_VIRTUAL_TRACE(); | 50 DECLARE_VIRTUAL_TRACE(); |
51 | 51 |
52 private: | 52 private: |
53 friend class PresentationReceiverTest; | 53 friend class PresentationReceiverTest; |
54 | 54 |
55 Member<ConnectionListProperty> m_connectionListProperty; | 55 Member<ConnectionListProperty> m_connectionListProperty; |
56 Member<PresentationConnectionList> m_connectionList; | 56 Member<PresentationConnectionList> m_connectionList; |
57 }; | 57 }; |
58 | 58 |
59 } // namespace blink | 59 } // namespace blink |
60 | 60 |
61 #endif // PresentationReceiver_h | 61 #endif // PresentationReceiver_h |
OLD | NEW |