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

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

Issue 1571943002: Simplify PortAllocatorBase and make PortAllocator creation synchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « remoting/protocol/transport_context.cc ('k') | remoting/protocol/webrtc_transport.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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_
OLDNEW
« no previous file with comments | « remoting/protocol/transport_context.cc ('k') | remoting/protocol/webrtc_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698