OLD | NEW |
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_TRANSPORT_H_ | 5 #ifndef REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ |
6 #define REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ | 6 #define REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 StreamChannelFactory* incoming_channel_factory() { | 67 StreamChannelFactory* incoming_channel_factory() { |
68 return &incoming_data_stream_adapter_; | 68 return &incoming_data_stream_adapter_; |
69 } | 69 } |
70 | 70 |
71 // Transport interface. | 71 // Transport interface. |
72 void Start(Authenticator* authenticator, | 72 void Start(Authenticator* authenticator, |
73 SendTransportInfoCallback send_transport_info_callback) override; | 73 SendTransportInfoCallback send_transport_info_callback) override; |
74 bool ProcessTransportInfo(buzz::XmlElement* transport_info) override; | 74 bool ProcessTransportInfo(buzz::XmlElement* transport_info) override; |
75 | 75 |
76 private: | 76 private: |
77 void OnPortAllocatorCreated( | |
78 scoped_ptr<cricket::PortAllocator> port_allocator); | |
79 | |
80 void OnLocalSessionDescriptionCreated( | 77 void OnLocalSessionDescriptionCreated( |
81 scoped_ptr<webrtc::SessionDescriptionInterface> description, | 78 scoped_ptr<webrtc::SessionDescriptionInterface> description, |
82 const std::string& error); | 79 const std::string& error); |
83 void OnLocalDescriptionSet(bool success, const std::string& error); | 80 void OnLocalDescriptionSet(bool success, const std::string& error); |
84 void OnRemoteDescriptionSet(bool send_answer, | 81 void OnRemoteDescriptionSet(bool send_answer, |
85 bool success, | 82 bool success, |
86 const std::string& error); | 83 const std::string& error); |
87 | 84 |
88 // webrtc::PeerConnectionObserver interface. | 85 // webrtc::PeerConnectionObserver interface. |
89 void OnSignalingChange( | 86 void OnSignalingChange( |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 133 |
137 base::WeakPtrFactory<WebrtcTransport> weak_factory_; | 134 base::WeakPtrFactory<WebrtcTransport> weak_factory_; |
138 | 135 |
139 DISALLOW_COPY_AND_ASSIGN(WebrtcTransport); | 136 DISALLOW_COPY_AND_ASSIGN(WebrtcTransport); |
140 }; | 137 }; |
141 | 138 |
142 } // namespace protocol | 139 } // namespace protocol |
143 } // namespace remoting | 140 } // namespace remoting |
144 | 141 |
145 #endif // REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ | 142 #endif // REMOTING_PROTOCOL_WEBRTC_TRANSPORT_H_ |
OLD | NEW |