| 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_HOST_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ |
| 6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 public WebrtcTransport::EventHandler, | 30 public WebrtcTransport::EventHandler, |
| 31 public ChannelDispatcherBase::EventHandler { | 31 public ChannelDispatcherBase::EventHandler { |
| 32 public: | 32 public: |
| 33 WebrtcConnectionToHost(); | 33 WebrtcConnectionToHost(); |
| 34 ~WebrtcConnectionToHost() override; | 34 ~WebrtcConnectionToHost() override; |
| 35 | 35 |
| 36 // ConnectionToHost interface. | 36 // ConnectionToHost interface. |
| 37 void set_client_stub(ClientStub* client_stub) override; | 37 void set_client_stub(ClientStub* client_stub) override; |
| 38 void set_clipboard_stub(ClipboardStub* clipboard_stub) override; | 38 void set_clipboard_stub(ClipboardStub* clipboard_stub) override; |
| 39 void set_video_renderer(VideoRenderer* video_renderer) override; | 39 void set_video_renderer(VideoRenderer* video_renderer) override; |
| 40 void set_audio_stub(AudioStub* audio_stub) override; | 40 void InitializeAudio( |
| 41 scoped_refptr<base::SingleThreadTaskRunner> audio_decode_task_runner, |
| 42 base::WeakPtr<AudioStub> audio_stub) override; |
| 41 void Connect(std::unique_ptr<Session> session, | 43 void Connect(std::unique_ptr<Session> session, |
| 42 scoped_refptr<TransportContext> transport_context, | 44 scoped_refptr<TransportContext> transport_context, |
| 43 HostEventCallback* event_callback) override; | 45 HostEventCallback* event_callback) override; |
| 44 const SessionConfig& config() override; | 46 const SessionConfig& config() override; |
| 45 ClipboardStub* clipboard_forwarder() override; | 47 ClipboardStub* clipboard_forwarder() override; |
| 46 HostStub* host_stub() override; | 48 HostStub* host_stub() override; |
| 47 InputStub* input_stub() override; | 49 InputStub* input_stub() override; |
| 48 State state() const override; | 50 State state() const override; |
| 49 | 51 |
| 50 private: | 52 private: |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 ErrorCode error_ = OK; | 103 ErrorCode error_ = OK; |
| 102 | 104 |
| 103 private: | 105 private: |
| 104 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToHost); | 106 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToHost); |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // namespace protocol | 109 } // namespace protocol |
| 108 } // namespace remoting | 110 } // namespace remoting |
| 109 | 111 |
| 110 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ | 112 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_HOST_H_ |
| OLD | NEW |