OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_HOST_CAST_EXTENSION_SESSION_H_ | 5 #ifndef REMOTING_HOST_CAST_EXTENSION_SESSION_H_ |
6 #define REMOTING_HOST_CAST_EXTENSION_SESSION_H_ | 6 #define REMOTING_HOST_CAST_EXTENSION_SESSION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void OnCreateVideoCapturer( | 59 void OnCreateVideoCapturer( |
60 scoped_ptr<webrtc::DesktopCapturer>* capturer) override; | 60 scoped_ptr<webrtc::DesktopCapturer>* capturer) override; |
61 bool ModifiesVideoPipeline() const override; | 61 bool ModifiesVideoPipeline() const override; |
62 bool OnExtensionMessage(ClientSessionControl* client_session_control, | 62 bool OnExtensionMessage(ClientSessionControl* client_session_control, |
63 protocol::ClientStub* client_stub, | 63 protocol::ClientStub* client_stub, |
64 const protocol::ExtensionMessage& message) override; | 64 const protocol::ExtensionMessage& message) override; |
65 | 65 |
66 // webrtc::PeerConnectionObserver interface. | 66 // webrtc::PeerConnectionObserver interface. |
67 void OnSignalingChange( | 67 void OnSignalingChange( |
68 webrtc::PeerConnectionInterface::SignalingState new_state) override; | 68 webrtc::PeerConnectionInterface::SignalingState new_state) override; |
69 void OnStateChange( | |
70 webrtc::PeerConnectionObserver::StateType state_changed) override; | |
71 void OnAddStream(webrtc::MediaStreamInterface* stream) override; | 69 void OnAddStream(webrtc::MediaStreamInterface* stream) override; |
72 void OnRemoveStream(webrtc::MediaStreamInterface* stream) override; | 70 void OnRemoveStream(webrtc::MediaStreamInterface* stream) override; |
73 void OnDataChannel(webrtc::DataChannelInterface* data_channel) override; | 71 void OnDataChannel(webrtc::DataChannelInterface* data_channel) override; |
74 void OnRenegotiationNeeded() override; | 72 void OnRenegotiationNeeded() override; |
75 void OnIceConnectionChange( | 73 void OnIceConnectionChange( |
76 webrtc::PeerConnectionInterface::IceConnectionState new_state) override; | 74 webrtc::PeerConnectionInterface::IceConnectionState new_state) override; |
77 void OnIceGatheringChange( | 75 void OnIceGatheringChange( |
78 webrtc::PeerConnectionInterface::IceGatheringState new_state) override; | 76 webrtc::PeerConnectionInterface::IceGatheringState new_state) override; |
79 void OnIceCandidate(const webrtc::IceCandidateInterface* candidate) override; | 77 void OnIceCandidate(const webrtc::IceCandidateInterface* candidate) override; |
80 void OnIceComplete() override; | |
81 | 78 |
82 private: | 79 private: |
83 CastExtensionSession( | 80 CastExtensionSession( |
84 scoped_refptr<protocol::TransportContext> transport_context, | 81 scoped_refptr<protocol::TransportContext> transport_context, |
85 ClientSessionControl* client_session_control, | 82 ClientSessionControl* client_session_control, |
86 protocol::ClientStub* client_stub); | 83 protocol::ClientStub* client_stub); |
87 | 84 |
88 // Parses |message| for a Session Description and sets the remote | 85 // Parses |message| for a Session Description and sets the remote |
89 // description, returning true if successful. | 86 // description, returning true if successful. |
90 bool ParseAndSetRemoteDescription(base::DictionaryValue* message); | 87 bool ParseAndSetRemoteDescription(base::DictionaryValue* message); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 221 |
225 // Worker thread that is wrapped to create |worker_thread_wrapper_|. | 222 // Worker thread that is wrapped to create |worker_thread_wrapper_|. |
226 base::Thread worker_thread_; | 223 base::Thread worker_thread_; |
227 | 224 |
228 DISALLOW_COPY_AND_ASSIGN(CastExtensionSession); | 225 DISALLOW_COPY_AND_ASSIGN(CastExtensionSession); |
229 }; | 226 }; |
230 | 227 |
231 } // namespace remoting | 228 } // namespace remoting |
232 | 229 |
233 #endif // REMOTING_HOST_CAST_EXTENSION_SESSION_H_ | 230 #endif // REMOTING_HOST_CAST_EXTENSION_SESSION_H_ |
OLD | NEW |