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

Unified Diff: net/http/http_basic_stream.cc

Issue 12886034: Remove experimental code to pick the "warmest" socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync, fix conflict Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_basic_stream.h ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_basic_stream.cc
===================================================================
--- net/http/http_basic_stream.cc (revision 191149)
+++ net/http/http_basic_stream.cc (working copy)
@@ -4,8 +4,6 @@
#include "net/http/http_basic_stream.h"
-#include "base/format_macros.h"
-#include "base/metrics/histogram.h"
#include "base/stringprintf.h"
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
@@ -15,7 +13,6 @@
#include "net/http/http_stream_parser.h"
#include "net/http/http_util.h"
#include "net/socket/client_socket_handle.h"
-#include "net/socket/client_socket_pool_base.h"
namespace net {
@@ -26,9 +23,7 @@
parser_(parser),
connection_(connection),
using_proxy_(using_proxy),
- request_info_(NULL),
- response_(NULL),
- bytes_read_offset_(0) {
+ request_info_(NULL) {
}
HttpBasicStream::~HttpBasicStream() {}
@@ -42,7 +37,6 @@
request_info_ = request_info;
parser_.reset(new HttpStreamParser(connection_.get(), request_info,
read_buf_, net_log));
- bytes_read_offset_ = connection_->socket()->NumBytesRead();
return OK;
}
@@ -58,7 +52,6 @@
request_line_ = base::StringPrintf("%s %s HTTP/1.1\r\n",
request_info_->method.c_str(),
path.c_str());
- response_ = response;
return parser_->SendRequest(request_line_, headers, response, callback);
}
@@ -128,10 +121,6 @@
return false;
}
-void HttpBasicStream::LogNumRttVsBytesMetrics() const {
- // Log rtt metrics here.
-}
-
void HttpBasicStream::Drain(HttpNetworkSession* session) {
HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this);
drainer->Start(session);
« no previous file with comments | « net/http/http_basic_stream.h ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698