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

Side by Side Diff: jingle/glue/proxy_resolving_client_socket.cc

Issue 15782010: Update remoting/ and jingle/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « jingle/glue/fake_ssl_client_socket_unittest.cc ('k') | jingle/glue/pseudotcp_adapter.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 (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 "jingle/glue/proxy_resolving_client_socket.h" 5 #include "jingle/glue/proxy_resolving_client_socket.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 24 matching lines...) Expand all
35 dest_host_port_pair_(dest_host_port_pair), 35 dest_host_port_pair_(dest_host_port_pair),
36 // Assume that we intend to do TLS on this socket; all 36 // Assume that we intend to do TLS on this socket; all
37 // current use cases do. 37 // current use cases do.
38 proxy_url_("https://" + dest_host_port_pair_.ToString()), 38 proxy_url_("https://" + dest_host_port_pair_.ToString()),
39 tried_direct_connect_fallback_(false), 39 tried_direct_connect_fallback_(false),
40 bound_net_log_( 40 bound_net_log_(
41 net::BoundNetLog::Make( 41 net::BoundNetLog::Make(
42 request_context_getter->GetURLRequestContext()->net_log(), 42 request_context_getter->GetURLRequestContext()->net_log(),
43 net::NetLog::SOURCE_SOCKET)), 43 net::NetLog::SOURCE_SOCKET)),
44 weak_factory_(this) { 44 weak_factory_(this) {
45 DCHECK(request_context_getter); 45 DCHECK(request_context_getter.get());
46 net::URLRequestContext* request_context = 46 net::URLRequestContext* request_context =
47 request_context_getter->GetURLRequestContext(); 47 request_context_getter->GetURLRequestContext();
48 DCHECK(request_context); 48 DCHECK(request_context);
49 DCHECK(!dest_host_port_pair_.host().empty()); 49 DCHECK(!dest_host_port_pair_.host().empty());
50 DCHECK_GT(dest_host_port_pair_.port(), 0); 50 DCHECK_GT(dest_host_port_pair_.port(), 0);
51 DCHECK(proxy_url_.is_valid()); 51 DCHECK(proxy_url_.is_valid());
52 52
53 net::HttpNetworkSession::Params session_params; 53 net::HttpNetworkSession::Params session_params;
54 session_params.client_socket_factory = socket_factory; 54 session_params.client_socket_factory = socket_factory;
55 session_params.host_resolver = request_context->host_resolver(); 55 session_params.host_resolver = request_context->host_resolver();
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 return false; 389 return false;
390 } 390 }
391 391
392 void ProxyResolvingClientSocket::CloseTransportSocket() { 392 void ProxyResolvingClientSocket::CloseTransportSocket() {
393 if (transport_.get() && transport_->socket()) 393 if (transport_.get() && transport_->socket())
394 transport_->socket()->Disconnect(); 394 transport_->socket()->Disconnect();
395 transport_.reset(); 395 transport_.reset();
396 } 396 }
397 397
398 } // namespace jingle_glue 398 } // namespace jingle_glue
OLDNEW
« no previous file with comments | « jingle/glue/fake_ssl_client_socket_unittest.cc ('k') | jingle/glue/pseudotcp_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698