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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, | 54 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter, |
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 scoped_ptr<webrtc::DesktopCapturer> 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; |
(...skipping 160 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_ |
246 | |
OLD | NEW |