| 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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const protocol::NetworkSettings& network_settings, | 55 const protocol::NetworkSettings& network_settings, |
| 56 ClientSessionControl* client_session_control, | 56 ClientSessionControl* client_session_control, |
| 57 protocol::ClientStub* client_stub); | 57 protocol::ClientStub* client_stub); |
| 58 | 58 |
| 59 // Called by webrtc::CreateSessionDescriptionObserver implementation. | 59 // Called by webrtc::CreateSessionDescriptionObserver implementation. |
| 60 void OnCreateSessionDescription(webrtc::SessionDescriptionInterface* desc); | 60 void OnCreateSessionDescription(webrtc::SessionDescriptionInterface* desc); |
| 61 void OnCreateSessionDescriptionFailure(const std::string& error); | 61 void OnCreateSessionDescriptionFailure(const std::string& error); |
| 62 | 62 |
| 63 // HostExtensionSession interface. | 63 // HostExtensionSession interface. |
| 64 virtual void OnCreateVideoCapturer( | 64 virtual void OnCreateVideoCapturer( |
| 65 scoped_ptr<webrtc::DesktopCapturer>* capturer) OVERRIDE; | 65 scoped_ptr<webrtc::DesktopCapturer>* capturer) override; |
| 66 virtual bool ModifiesVideoPipeline() const OVERRIDE; | 66 virtual bool ModifiesVideoPipeline() const override; |
| 67 virtual bool OnExtensionMessage( | 67 virtual bool OnExtensionMessage( |
| 68 ClientSessionControl* client_session_control, | 68 ClientSessionControl* client_session_control, |
| 69 protocol::ClientStub* client_stub, | 69 protocol::ClientStub* client_stub, |
| 70 const protocol::ExtensionMessage& message) OVERRIDE; | 70 const protocol::ExtensionMessage& message) override; |
| 71 | 71 |
| 72 // webrtc::PeerConnectionObserver interface. | 72 // webrtc::PeerConnectionObserver interface. |
| 73 virtual void OnError() OVERRIDE; | 73 virtual void OnError() override; |
| 74 virtual void OnSignalingChange( | 74 virtual void OnSignalingChange( |
| 75 webrtc::PeerConnectionInterface::SignalingState new_state) OVERRIDE; | 75 webrtc::PeerConnectionInterface::SignalingState new_state) override; |
| 76 virtual void OnStateChange( | 76 virtual void OnStateChange( |
| 77 webrtc::PeerConnectionObserver::StateType state_changed) OVERRIDE; | 77 webrtc::PeerConnectionObserver::StateType state_changed) override; |
| 78 virtual void OnAddStream(webrtc::MediaStreamInterface* stream) OVERRIDE; | 78 virtual void OnAddStream(webrtc::MediaStreamInterface* stream) override; |
| 79 virtual void OnRemoveStream(webrtc::MediaStreamInterface* stream) OVERRIDE; | 79 virtual void OnRemoveStream(webrtc::MediaStreamInterface* stream) override; |
| 80 virtual void OnDataChannel( | 80 virtual void OnDataChannel( |
| 81 webrtc::DataChannelInterface* data_channel) OVERRIDE; | 81 webrtc::DataChannelInterface* data_channel) override; |
| 82 virtual void OnRenegotiationNeeded() OVERRIDE; | 82 virtual void OnRenegotiationNeeded() override; |
| 83 virtual void OnIceConnectionChange( | 83 virtual void OnIceConnectionChange( |
| 84 webrtc::PeerConnectionInterface::IceConnectionState new_state) OVERRIDE; | 84 webrtc::PeerConnectionInterface::IceConnectionState new_state) override; |
| 85 virtual void OnIceGatheringChange( | 85 virtual void OnIceGatheringChange( |
| 86 webrtc::PeerConnectionInterface::IceGatheringState new_state) OVERRIDE; | 86 webrtc::PeerConnectionInterface::IceGatheringState new_state) override; |
| 87 virtual void OnIceCandidate( | 87 virtual void OnIceCandidate( |
| 88 const webrtc::IceCandidateInterface* candidate) OVERRIDE; | 88 const webrtc::IceCandidateInterface* candidate) override; |
| 89 virtual void OnIceComplete() OVERRIDE; | 89 virtual void OnIceComplete() override; |
| 90 | 90 |
| 91 private: | 91 private: |
| 92 CastExtensionSession( | 92 CastExtensionSession( |
| 93 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 93 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 94 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, | 94 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, |
| 95 const protocol::NetworkSettings& network_settings, | 95 const protocol::NetworkSettings& network_settings, |
| 96 ClientSessionControl* client_session_control, | 96 ClientSessionControl* client_session_control, |
| 97 protocol::ClientStub* client_stub); | 97 protocol::ClientStub* client_stub); |
| 98 | 98 |
| 99 // Parses |message| for a Session Description and sets the remote | 99 // Parses |message| for a Session Description and sets the remote |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 236 |
| 237 // Worker thread that is wrapped to create |worker_thread_wrapper_|. | 237 // Worker thread that is wrapped to create |worker_thread_wrapper_|. |
| 238 base::Thread worker_thread_; | 238 base::Thread worker_thread_; |
| 239 | 239 |
| 240 DISALLOW_COPY_AND_ASSIGN(CastExtensionSession); | 240 DISALLOW_COPY_AND_ASSIGN(CastExtensionSession); |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 } // namespace remoting | 243 } // namespace remoting |
| 244 | 244 |
| 245 #endif // REMOTING_HOST_CAST_EXTENSION_SESSION_H_ | 245 #endif // REMOTING_HOST_CAST_EXTENSION_SESSION_H_ |
| OLD | NEW |