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

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

Issue 2525743002: Make URLRequestContext a MemoryDumpProvider (Abandoned) (Closed)
Patch Set: rebased to 7f3d142161b15869f6bea58ac43c5f52ce5834ac Created 4 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
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/socks_client_socket.h" 5 #include "net/socket/socks_client_socket.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 168 }
169 169
170 void SOCKSClientSocket::GetConnectionAttempts(ConnectionAttempts* out) const { 170 void SOCKSClientSocket::GetConnectionAttempts(ConnectionAttempts* out) const {
171 out->clear(); 171 out->clear();
172 } 172 }
173 173
174 int64_t SOCKSClientSocket::GetTotalReceivedBytes() const { 174 int64_t SOCKSClientSocket::GetTotalReceivedBytes() const {
175 return transport_->socket()->GetTotalReceivedBytes(); 175 return transport_->socket()->GetTotalReceivedBytes();
176 } 176 }
177 177
178 void SOCKSClientSocket::DumpMemoryStats(
179 base::trace_event::MemoryAllocatorDump* dump) const {}
180
178 // Read is called by the transport layer above to read. This can only be done 181 // Read is called by the transport layer above to read. This can only be done
179 // if the SOCKS handshake is complete. 182 // if the SOCKS handshake is complete.
180 int SOCKSClientSocket::Read(IOBuffer* buf, int buf_len, 183 int SOCKSClientSocket::Read(IOBuffer* buf, int buf_len,
181 const CompletionCallback& callback) { 184 const CompletionCallback& callback) {
182 DCHECK(completed_handshake_); 185 DCHECK(completed_handshake_);
183 DCHECK_EQ(STATE_NONE, next_state_); 186 DCHECK_EQ(STATE_NONE, next_state_);
184 DCHECK(user_callback_.is_null()); 187 DCHECK(user_callback_.is_null());
185 DCHECK(!callback.is_null()); 188 DCHECK(!callback.is_null());
186 189
187 int rv = transport_->socket()->Read( 190 int rv = transport_->socket()->Read(
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 448
446 int SOCKSClientSocket::GetPeerAddress(IPEndPoint* address) const { 449 int SOCKSClientSocket::GetPeerAddress(IPEndPoint* address) const {
447 return transport_->socket()->GetPeerAddress(address); 450 return transport_->socket()->GetPeerAddress(address);
448 } 451 }
449 452
450 int SOCKSClientSocket::GetLocalAddress(IPEndPoint* address) const { 453 int SOCKSClientSocket::GetLocalAddress(IPEndPoint* address) const {
451 return transport_->socket()->GetLocalAddress(address); 454 return transport_->socket()->GetLocalAddress(address);
452 } 455 }
453 456
454 } // namespace net 457 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698