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

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

Issue 2678353003: Close idle H2 sockets when SpdySession is initialized. (Closed)
Patch Set: Self Created 3 years, 10 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 void MockClientSocketPoolManager::FlushSocketPoolsWithError(int error) { 46 void MockClientSocketPoolManager::FlushSocketPoolsWithError(int error) {
47 NOTIMPLEMENTED(); 47 NOTIMPLEMENTED();
48 } 48 }
49 49
50 void MockClientSocketPoolManager::CloseIdleSockets() { 50 void MockClientSocketPoolManager::CloseIdleSockets() {
51 NOTIMPLEMENTED(); 51 NOTIMPLEMENTED();
52 } 52 }
53 53
54 void MockClientSocketPoolManager::CloseIdleSocketsInGroup(
55 const std::string& group_name) {
56 NOTIMPLEMENTED();
57 }
58
54 TransportClientSocketPool* 59 TransportClientSocketPool*
55 MockClientSocketPoolManager::GetTransportSocketPool() { 60 MockClientSocketPoolManager::GetTransportSocketPool() {
56 return transport_socket_pool_.get(); 61 return transport_socket_pool_.get();
57 } 62 }
58 63
59 SSLClientSocketPool* MockClientSocketPoolManager::GetSSLSocketPool() { 64 SSLClientSocketPool* MockClientSocketPoolManager::GetSSLSocketPool() {
60 return ssl_socket_pool_.get(); 65 return ssl_socket_pool_.get();
61 } 66 }
62 67
63 SOCKSClientSocketPool* MockClientSocketPoolManager::GetSocketPoolForSOCKSProxy( 68 SOCKSClientSocketPool* MockClientSocketPoolManager::GetSocketPoolForSOCKSProxy(
(...skipping 27 matching lines...) Expand all
91 MockClientSocketPoolManager::SocketPoolInfoToValue() const { 96 MockClientSocketPoolManager::SocketPoolInfoToValue() const {
92 NOTIMPLEMENTED(); 97 NOTIMPLEMENTED();
93 return std::unique_ptr<base::Value>(nullptr); 98 return std::unique_ptr<base::Value>(nullptr);
94 } 99 }
95 100
96 void MockClientSocketPoolManager::DumpMemoryStats( 101 void MockClientSocketPoolManager::DumpMemoryStats(
97 base::trace_event::ProcessMemoryDump* pmd, 102 base::trace_event::ProcessMemoryDump* pmd,
98 const std::string& parent_dump_absolute_name) const {} 103 const std::string& parent_dump_absolute_name) const {}
99 104
100 } // namespace net 105 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698