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

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

Issue 11464028: Introduce ERR_NETWORK_CHANGED and allow URLFetcher to automatically retry on that error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed nits Created 8 years 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 | « net/socket/mock_client_socket_pool_manager.h ('k') | net/socket/socks_client_socket_pool.h » ('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 "net/http/http_proxy_client_socket_pool.h" 7 #include "net/http/http_proxy_client_socket_pool.h"
8 #include "net/socket/socks_client_socket_pool.h" 8 #include "net/socket/socks_client_socket_pool.h"
9 #include "net/socket/ssl_client_socket_pool.h" 9 #include "net/socket/ssl_client_socket_pool.h"
10 #include "net/socket/transport_client_socket_pool.h" 10 #include "net/socket/transport_client_socket_pool.h"
(...skipping 24 matching lines...) Expand all
35 HttpProxyClientSocketPool* pool) { 35 HttpProxyClientSocketPool* pool) {
36 http_proxy_socket_pools_[http_proxy] = pool; 36 http_proxy_socket_pools_[http_proxy] = pool;
37 } 37 }
38 38
39 void MockClientSocketPoolManager::SetSocketPoolForSSLWithProxy( 39 void MockClientSocketPoolManager::SetSocketPoolForSSLWithProxy(
40 const HostPortPair& proxy_server, 40 const HostPortPair& proxy_server,
41 SSLClientSocketPool* pool) { 41 SSLClientSocketPool* pool) {
42 ssl_socket_pools_for_proxies_[proxy_server] = pool; 42 ssl_socket_pools_for_proxies_[proxy_server] = pool;
43 } 43 }
44 44
45 void MockClientSocketPoolManager::FlushSocketPools() { 45 void MockClientSocketPoolManager::FlushSocketPoolsWithError(int error) {
46 NOTIMPLEMENTED(); 46 NOTIMPLEMENTED();
47 } 47 }
48 48
49 void MockClientSocketPoolManager::CloseIdleSockets() { 49 void MockClientSocketPoolManager::CloseIdleSockets() {
50 NOTIMPLEMENTED(); 50 NOTIMPLEMENTED();
51 } 51 }
52 52
53 TransportClientSocketPool* 53 TransportClientSocketPool*
54 MockClientSocketPoolManager::GetTransportSocketPool() { 54 MockClientSocketPoolManager::GetTransportSocketPool() {
55 return transport_socket_pool_.get(); 55 return transport_socket_pool_.get();
(...skipping 29 matching lines...) Expand all
85 return it->second; 85 return it->second;
86 return NULL; 86 return NULL;
87 } 87 }
88 88
89 base::Value* MockClientSocketPoolManager::SocketPoolInfoToValue() const { 89 base::Value* MockClientSocketPoolManager::SocketPoolInfoToValue() const {
90 NOTIMPLEMENTED(); 90 NOTIMPLEMENTED();
91 return NULL; 91 return NULL;
92 } 92 }
93 93
94 } // namespace net 94 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/mock_client_socket_pool_manager.h ('k') | net/socket/socks_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698