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

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

Issue 2146213002: Add support for dynamic channels in WebrtcTransport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void set_host_stub(HostStub* host_stub) override; 49 void set_host_stub(HostStub* host_stub) override;
50 void set_input_stub(InputStub* input_stub) override; 50 void set_input_stub(InputStub* input_stub) override;
51 51
52 // Session::EventHandler interface. 52 // Session::EventHandler interface.
53 void OnSessionStateChange(Session::State state) override; 53 void OnSessionStateChange(Session::State state) override;
54 54
55 // WebrtcTransport::EventHandler interface 55 // WebrtcTransport::EventHandler interface
56 void OnWebrtcTransportConnecting() override; 56 void OnWebrtcTransportConnecting() override;
57 void OnWebrtcTransportConnected() override; 57 void OnWebrtcTransportConnected() override;
58 void OnWebrtcTransportError(ErrorCode error) override; 58 void OnWebrtcTransportError(ErrorCode error) override;
59 void OnWebrtcTransportIncomingDataChannel(
60 const std::string& name,
61 std::unique_ptr<MessagePipe> pipe) override;
59 void OnWebrtcTransportMediaStreamAdded( 62 void OnWebrtcTransportMediaStreamAdded(
60 scoped_refptr<webrtc::MediaStreamInterface> stream) override; 63 scoped_refptr<webrtc::MediaStreamInterface> stream) override;
61 void OnWebrtcTransportMediaStreamRemoved( 64 void OnWebrtcTransportMediaStreamRemoved(
62 scoped_refptr<webrtc::MediaStreamInterface> stream) override; 65 scoped_refptr<webrtc::MediaStreamInterface> stream) override;
63 66
64 // ChannelDispatcherBase::EventHandler interface. 67 // ChannelDispatcherBase::EventHandler interface.
65 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override; 68 void OnChannelInitialized(ChannelDispatcherBase* channel_dispatcher) override;
69 void OnChannelClosed(ChannelDispatcherBase* channel_dispatcher) override;
66 70
67 private: 71 private:
68 base::ThreadChecker thread_checker_; 72 base::ThreadChecker thread_checker_;
69 73
70 // Event handler for handling events sent from this object. 74 // Event handler for handling events sent from this object.
71 ConnectionToClient::EventHandler* event_handler_ = nullptr; 75 ConnectionToClient::EventHandler* event_handler_ = nullptr;
72 76
73 std::unique_ptr<WebrtcTransport> transport_; 77 std::unique_ptr<WebrtcTransport> transport_;
74 78
75 std::unique_ptr<Session> session_; 79 std::unique_ptr<Session> session_;
76 80
77 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_; 81 scoped_refptr<base::SingleThreadTaskRunner> video_encode_task_runner_;
78 82
79 std::unique_ptr<HostControlDispatcher> control_dispatcher_; 83 std::unique_ptr<HostControlDispatcher> control_dispatcher_;
80 std::unique_ptr<HostEventDispatcher> event_dispatcher_; 84 std::unique_ptr<HostEventDispatcher> event_dispatcher_;
81 base::WeakPtrFactory<WebrtcConnectionToClient> weak_factory_; 85 base::WeakPtrFactory<WebrtcConnectionToClient> weak_factory_;
82 86
83 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient); 87 DISALLOW_COPY_AND_ASSIGN(WebrtcConnectionToClient);
84 }; 88 };
85 89
86 } // namespace protocol 90 } // namespace protocol
87 } // namespace remoting 91 } // namespace remoting
88 92
89 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_ 93 #endif // REMOTING_PROTOCOL_WEBRTC_CONNECTION_TO_CLIENT_H_
OLDNEW
« no previous file with comments | « remoting/protocol/stream_message_pipe_adapter.cc ('k') | remoting/protocol/webrtc_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698