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

Side by Side Diff: remoting/protocol/pepper_transport_socket_adapter.cc

Issue 9958028: Add a new GetNegotiatedProtocol method to StreamSocket and implement in all subclasses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/pepper_transport_socket_adapter.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "remoting/protocol/pepper_transport_socket_adapter.h" 5 #include "remoting/protocol/pepper_transport_socket_adapter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/base/address_list.h" 8 #include "net/base/address_list.h"
9 #include "net/base/io_buffer.h" 9 #include "net/base/io_buffer.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 NOTIMPLEMENTED(); 212 NOTIMPLEMENTED();
213 return 0; 213 return 0;
214 } 214 }
215 215
216 base::TimeDelta PepperTransportSocketAdapter::GetConnectTimeMicros() const { 216 base::TimeDelta PepperTransportSocketAdapter::GetConnectTimeMicros() const {
217 DCHECK(CalledOnValidThread()); 217 DCHECK(CalledOnValidThread());
218 NOTIMPLEMENTED(); 218 NOTIMPLEMENTED();
219 return base::TimeDelta(); 219 return base::TimeDelta();
220 } 220 }
221 221
222 net::NextProto PepperTransportSocketAdapter::GetNegotiatedProtocol() const {
223 DCHECK(CalledOnValidThread());
224 NOTIMPLEMENTED();
225 return net::kProtoUnknown;
226 }
222 227
223 int PepperTransportSocketAdapter::ProcessCandidates() { 228 int PepperTransportSocketAdapter::ProcessCandidates() {
224 DCHECK(CalledOnValidThread()); 229 DCHECK(CalledOnValidThread());
225 DCHECK(!get_address_pending_); 230 DCHECK(!get_address_pending_);
226 DCHECK(transport_.get()); 231 DCHECK(transport_.get());
227 232
228 while (true) { 233 while (true) {
229 pp::Var address; 234 pp::Var address;
230 int result = transport_->GetNextAddress( 235 int result = transport_->GetNextAddress(
231 &address, callback_factory_.NewOptionalCallback( 236 &address, callback_factory_.NewOptionalCallback(
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 DCHECK(write_buffer_); 286 DCHECK(write_buffer_);
282 287
283 net::CompletionCallback callback = write_callback_; 288 net::CompletionCallback callback = write_callback_;
284 write_callback_.Reset(); 289 write_callback_.Reset();
285 write_buffer_ = NULL; 290 write_buffer_ = NULL;
286 callback.Run(PPErrorToNetError(result)); 291 callback.Run(PPErrorToNetError(result));
287 } 292 }
288 293
289 } // namespace protocol 294 } // namespace protocol
290 } // namespace remoting 295 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/pepper_transport_socket_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698