OLD | NEW |
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 Loading... |
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 |
OLD | NEW |