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

Side by Side Diff: net/http/http_proxy_client_socket_wrapper.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/http/http_proxy_client_socket_wrapper.h" 5 #include "net/http/http_proxy_client_socket_wrapper.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 void HttpProxyClientSocketWrapper::AddConnectionAttempts( 270 void HttpProxyClientSocketWrapper::AddConnectionAttempts(
271 const ConnectionAttempts& attempts) { 271 const ConnectionAttempts& attempts) {
272 if (transport_socket_) 272 if (transport_socket_)
273 transport_socket_->AddConnectionAttempts(attempts); 273 transport_socket_->AddConnectionAttempts(attempts);
274 } 274 }
275 275
276 int64_t HttpProxyClientSocketWrapper::GetTotalReceivedBytes() const { 276 int64_t HttpProxyClientSocketWrapper::GetTotalReceivedBytes() const {
277 return transport_socket_->GetTotalReceivedBytes(); 277 return transport_socket_->GetTotalReceivedBytes();
278 } 278 }
279 279
280 void HttpProxyClientSocketWrapper::DumpMemoryStats(
281 base::trace_event::MemoryAllocatorDump* dump) const {}
282
280 int HttpProxyClientSocketWrapper::Read(IOBuffer* buf, 283 int HttpProxyClientSocketWrapper::Read(IOBuffer* buf,
281 int buf_len, 284 int buf_len,
282 const CompletionCallback& callback) { 285 const CompletionCallback& callback) {
283 if (transport_socket_) 286 if (transport_socket_)
284 return transport_socket_->Read(buf, buf_len, callback); 287 return transport_socket_->Read(buf, buf_len, callback);
285 return ERR_SOCKET_NOT_CONNECTED; 288 return ERR_SOCKET_NOT_CONNECTED;
286 } 289 }
287 290
288 int HttpProxyClientSocketWrapper::Write(IOBuffer* buf, 291 int HttpProxyClientSocketWrapper::Write(IOBuffer* buf,
289 int buf_len, 292 int buf_len,
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 const HostResolver::RequestInfo& 627 const HostResolver::RequestInfo&
625 HttpProxyClientSocketWrapper::GetDestination() { 628 HttpProxyClientSocketWrapper::GetDestination() {
626 if (transport_params_) { 629 if (transport_params_) {
627 return transport_params_->destination(); 630 return transport_params_->destination();
628 } else { 631 } else {
629 return ssl_params_->GetDirectConnectionParams()->destination(); 632 return ssl_params_->GetDirectConnectionParams()->destination();
630 } 633 }
631 } 634 }
632 635
633 } // namespace net 636 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698