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

Side by Side Diff: remoting/protocol/webrtc_connection_to_client.h

Issue 1580823003: Implement client-side video stream support for WebRTC-based protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@packet_options_rem
Patch Set: Created 4 years, 11 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
« no previous file with comments | « remoting/protocol/frame_consumer.h ('k') | remoting/protocol/webrtc_connection_to_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 <string> 10 #include <string>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void set_host_stub(HostStub* host_stub) override; 47 void set_host_stub(HostStub* host_stub) override;
48 void set_input_stub(InputStub* input_stub) override; 48 void set_input_stub(InputStub* input_stub) override;
49 49
50 // Session::EventHandler interface. 50 // Session::EventHandler interface.
51 void OnSessionStateChange(Session::State state) override; 51 void OnSessionStateChange(Session::State state) override;
52 52
53 // WebrtcTransport::EventHandler interface 53 // WebrtcTransport::EventHandler interface
54 void OnWebrtcTransportConnecting() override; 54 void OnWebrtcTransportConnecting() override;
55 void OnWebrtcTransportConnected() override; 55 void OnWebrtcTransportConnected() override;
56 void OnWebrtcTransportError(ErrorCode error) override; 56 void OnWebrtcTransportError(ErrorCode error) override;
57 void OnWebrtcTransportMediaStreamAdded(
58 scoped_refptr<webrtc::MediaStreamInterface> stream) override;
59 void OnWebrtcTransportMediaStreamRemoved(
60 scoped_refptr<webrtc::MediaStreamInterface> stream) override;
57 61
58 // ChannelDispatcherBase::EventHandler interface. 62 // ChannelDispatcherBase::EventHandler interface.
59 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; 63 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override;
60 void OnChannelError(ChannelDispatcherBase* channel_dispatcher, 64 void OnChannelError(ChannelDispatcherBase* channel_dispatcher,
61 ErrorCode error) override; 65 ErrorCode error) override;
62 66
63 private: 67 private:
64 base::ThreadChecker thread_checker_; 68 base::ThreadChecker thread_checker_;
65 69
66 // Event handler for handling events sent from this object. 70 // Event handler for handling events sent from this object.
67 ConnectionToClient::EventHandler* event_handler_ = nullptr; 71 ConnectionToClient::EventHandler* event_handler_ = nullptr;
68 72
69 WebrtcTransport transport_; 73 WebrtcTransport transport_;
70 74
71 scoped_ptr<Session> session_; 75 scoped_ptr<Session> session_;
72 76
73 scoped_ptr<HostControlDispatcher> control_dispatcher_; 77 scoped_ptr<HostControlDispatcher> control_dispatcher_;
74 scoped_ptr<HostEventDispatcher> event_dispatcher_; 78 scoped_ptr<HostEventDispatcher> event_dispatcher_;
75 79
76 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient); 80 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient);
77 }; 81 };
78 82
79 } // namespace protocol 83 } // namespace protocol
80 } // namespace remoting 84 } // namespace remoting
81 85
82 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ 86 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_
OLDNEW
« no previous file with comments | « remoting/protocol/frame_consumer.h ('k') | remoting/protocol/webrtc_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698