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

Side by Side Diff: remoting/signaling/xmpp_signal_strategy.cc

Issue 1290243007: Shift URLRequestContextStorage over to taking scoped_ptrs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Paul_BuilderGrab
Patch Set: Sync'd to revision p349162. Created 5 years, 3 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/host/token_validator_factory_impl_unittest.cc ('k') | sync/tools/sync_client.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 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 #include "remoting/signaling/xmpp_signal_strategy.h" 5 #include "remoting/signaling/xmpp_signal_strategy.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 // Reset the writer so we don't try to write to the raw socket anymore. 281 // Reset the writer so we don't try to write to the raw socket anymore.
282 writer_.reset(); 282 writer_.reset();
283 283
284 DCHECK(!read_pending_); 284 DCHECK(!read_pending_);
285 285
286 scoped_ptr<net::ClientSocketHandle> socket_handle( 286 scoped_ptr<net::ClientSocketHandle> socket_handle(
287 new net::ClientSocketHandle()); 287 new net::ClientSocketHandle());
288 socket_handle->SetSocket(socket_.Pass()); 288 socket_handle->SetSocket(socket_.Pass());
289 289
290 cert_verifier_.reset(net::CertVerifier::CreateDefault()); 290 cert_verifier_ = net::CertVerifier::CreateDefault();
291 transport_security_state_.reset(new net::TransportSecurityState()); 291 transport_security_state_.reset(new net::TransportSecurityState());
292 net::SSLClientSocketContext context; 292 net::SSLClientSocketContext context;
293 context.cert_verifier = cert_verifier_.get(); 293 context.cert_verifier = cert_verifier_.get();
294 context.transport_security_state = transport_security_state_.get(); 294 context.transport_security_state = transport_security_state_.get();
295 295
296 socket_ = socket_factory_->CreateSSLClientSocket( 296 socket_ = socket_factory_->CreateSSLClientSocket(
297 socket_handle.Pass(), 297 socket_handle.Pass(),
298 net::HostPortPair(xmpp_server_config_.host, kDefaultHttpsPort), 298 net::HostPortPair(xmpp_server_config_.host, kDefaultHttpsPort),
299 net::SSLConfig(), context); 299 net::SSLConfig(), context);
300 300
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 std::string XmppSignalStrategy::GetNextId() { 528 std::string XmppSignalStrategy::GetNextId() {
529 return base::Uint64ToString(base::RandUint64()); 529 return base::Uint64ToString(base::RandUint64());
530 } 530 }
531 531
532 void XmppSignalStrategy::SetAuthInfo(const std::string& username, 532 void XmppSignalStrategy::SetAuthInfo(const std::string& username,
533 const std::string& auth_token) { 533 const std::string& auth_token) {
534 core_->SetAuthInfo(username, auth_token); 534 core_->SetAuthInfo(username, auth_token);
535 } 535 }
536 536
537 } // namespace remoting 537 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/token_validator_factory_impl_unittest.cc ('k') | sync/tools/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698