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 REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ |
6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 25 matching lines...) Expand all Loading... |
36 ~WebrtcConnectionToClient() override; | 36 ~WebrtcConnectionToClient() override; |
37 | 37 |
38 // ConnectionToClient interface. | 38 // ConnectionToClient interface. |
39 void SetEventHandler( | 39 void SetEventHandler( |
40 ConnectionToClient::EventHandler* event_handler) override; | 40 ConnectionToClient::EventHandler* event_handler) override; |
41 Session* session() override; | 41 Session* session() override; |
42 void Disconnect(ErrorCode error) override; | 42 void Disconnect(ErrorCode error) override; |
43 void OnInputEventReceived(int64_t timestamp) override; | 43 void OnInputEventReceived(int64_t timestamp) override; |
44 std::unique_ptr<VideoStream> StartVideoStream( | 44 std::unique_ptr<VideoStream> StartVideoStream( |
45 std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer) override; | 45 std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer) override; |
46 AudioStub* audio_stub() override; | 46 std::unique_ptr<AudioStream> StartAudioStream( |
| 47 std::unique_ptr<AudioSource> audio_source) override; |
47 ClientStub* client_stub() override; | 48 ClientStub* client_stub() override; |
48 void set_clipboard_stub(ClipboardStub* clipboard_stub) override; | 49 void set_clipboard_stub(ClipboardStub* clipboard_stub) override; |
49 void set_host_stub(HostStub* host_stub) override; | 50 void set_host_stub(HostStub* host_stub) override; |
50 void set_input_stub(InputStub* input_stub) override; | 51 void set_input_stub(InputStub* input_stub) override; |
51 | 52 |
52 // Session::EventHandler interface. | 53 // Session::EventHandler interface. |
53 void OnSessionStateChange(Session::State state) override; | 54 void OnSessionStateChange(Session::State state) override; |
54 | 55 |
55 // WebrtcTransport::EventHandler interface | 56 // WebrtcTransport::EventHandler interface |
56 void OnWebrtcTransportConnecting() override; | 57 void OnWebrtcTransportConnecting() override; |
(...skipping 27 matching lines...) Expand all Loading... |
84 std::unique_ptr<HostEventDispatcher> event_dispatcher_; | 85 std::unique_ptr<HostEventDispatcher> event_dispatcher_; |
85 base::WeakPtrFactory<WebrtcConnectionToClient> weak_factory_; | 86 base::WeakPtrFactory<WebrtcConnectionToClient> weak_factory_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient); | 88 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace protocol | 91 } // namespace protocol |
91 } // namespace remoting | 92 } // namespace remoting |
92 | 93 |
93 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ | 94 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ |
OLD | NEW |