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

Side by Side Diff: net/socket/mock_client_socket_pool_manager.cc

Issue 1892323002: Change scoped_ptr to std::unique_ptr in //net/socket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « net/socket/mock_client_socket_pool_manager.h ('k') | net/socket/nss_ssl_util.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 "net/socket/mock_client_socket_pool_manager.h" 5 #include "net/socket/mock_client_socket_pool_manager.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "net/http/http_proxy_client_socket_pool.h" 8 #include "net/http/http_proxy_client_socket_pool.h"
9 #include "net/socket/socks_client_socket_pool.h" 9 #include "net/socket/socks_client_socket_pool.h"
10 #include "net/socket/ssl_client_socket_pool.h" 10 #include "net/socket/ssl_client_socket_pool.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 SSLClientSocketPool* MockClientSocketPoolManager::GetSocketPoolForSSLWithProxy( 81 SSLClientSocketPool* MockClientSocketPoolManager::GetSocketPoolForSSLWithProxy(
82 const HostPortPair& proxy_server) { 82 const HostPortPair& proxy_server) {
83 SSLSocketPoolMap::const_iterator it = 83 SSLSocketPoolMap::const_iterator it =
84 ssl_socket_pools_for_proxies_.find(proxy_server); 84 ssl_socket_pools_for_proxies_.find(proxy_server);
85 if (it != ssl_socket_pools_for_proxies_.end()) 85 if (it != ssl_socket_pools_for_proxies_.end())
86 return it->second; 86 return it->second;
87 return NULL; 87 return NULL;
88 } 88 }
89 89
90 scoped_ptr<base::Value> MockClientSocketPoolManager::SocketPoolInfoToValue() 90 std::unique_ptr<base::Value>
91 const { 91 MockClientSocketPoolManager::SocketPoolInfoToValue() const {
92 NOTIMPLEMENTED(); 92 NOTIMPLEMENTED();
93 return scoped_ptr<base::Value>(nullptr); 93 return std::unique_ptr<base::Value>(nullptr);
94 } 94 }
95 95
96 } // namespace net 96 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/mock_client_socket_pool_manager.h ('k') | net/socket/nss_ssl_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698