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

Side by Side Diff: net/http/http_proxy_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/http/http_proxy_client_socket.h" 5 #include "net/http/http_proxy_client_socket.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/profiler/scoped_tracker.h" 9 #include "base/profiler/scoped_tracker.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 void HttpProxyClientSocket::GetConnectionAttempts( 201 void HttpProxyClientSocket::GetConnectionAttempts(
202 ConnectionAttempts* out) const { 202 ConnectionAttempts* out) const {
203 out->clear(); 203 out->clear();
204 } 204 }
205 205
206 int64_t HttpProxyClientSocket::GetTotalReceivedBytes() const { 206 int64_t HttpProxyClientSocket::GetTotalReceivedBytes() const {
207 return transport_->socket()->GetTotalReceivedBytes(); 207 return transport_->socket()->GetTotalReceivedBytes();
208 } 208 }
209 209
210 void HttpProxyClientSocket::DumpMemoryStats(
211 base::trace_event::MemoryAllocatorDump* dump) const {}
212
210 int HttpProxyClientSocket::Read(IOBuffer* buf, int buf_len, 213 int HttpProxyClientSocket::Read(IOBuffer* buf, int buf_len,
211 const CompletionCallback& callback) { 214 const CompletionCallback& callback) {
212 DCHECK(user_callback_.is_null()); 215 DCHECK(user_callback_.is_null());
213 if (next_state_ != STATE_DONE) { 216 if (next_state_ != STATE_DONE) {
214 // We're trying to read the body of the response but we're still trying 217 // We're trying to read the body of the response but we're still trying
215 // to establish an SSL tunnel through the proxy. We can't read these 218 // to establish an SSL tunnel through the proxy. We can't read these
216 // bytes when establishing a tunnel because they might be controlled by 219 // bytes when establishing a tunnel because they might be controlled by
217 // an active network attacker. We don't worry about this for HTTP 220 // an active network attacker. We don't worry about this for HTTP
218 // because an active network attacker can already control HTTP sessions. 221 // because an active network attacker can already control HTTP sessions.
219 // We reach this case when the user cancels a 407 proxy auth prompt. 222 // We reach this case when the user cancels a 407 proxy auth prompt.
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 next_state_ = STATE_DRAIN_BODY; 527 next_state_ = STATE_DRAIN_BODY;
525 return OK; 528 return OK;
526 } 529 }
527 530
528 return DidDrainBodyForAuthRestart(); 531 return DidDrainBodyForAuthRestart();
529 } 532 }
530 533
531 //---------------------------------------------------------------- 534 //----------------------------------------------------------------
532 535
533 } // namespace net 536 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698