summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_http_job.cc
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-11-19 14:53:55 +0000
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-11-19 14:53:55 +0000
commit657fb1c9269ce235b66a0f32c9bf0afc64fa7c77 (patch)
tree396a4bc17c30655c78fd62fe34778900c40a97cc /net/url_request/url_request_http_job.cc
parent4ec08dd85e9e4584f1bb0cd6110590f367d8b258 (diff)
downloadexternal_chromium-657fb1c9269ce235b66a0f32c9bf0afc64fa7c77.zip
external_chromium-657fb1c9269ce235b66a0f32c9bf0afc64fa7c77.tar.gz
external_chromium-657fb1c9269ce235b66a0f32c9bf0afc64fa7c77.tar.bz2
Revert "net: networking optimizations"
This reverts commit 5fbe95affc8eeed93c678b1d271f64dcc4dd919b.
Diffstat (limited to 'net/url_request/url_request_http_job.cc')
-rw-r--r--net/url_request/url_request_http_job.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 2818d19..95f536f 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -1,6 +1,4 @@
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Copyright (c) 2011, Code Aurora Forum. All rights reserved
-
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -42,7 +40,6 @@
#include "net/url_request/url_request_redirect_job.h"
#include "net/url_request/url_request_throttler_header_adapter.h"
#include "net/url_request/url_request_throttler_manager.h"
-#include "net/disk_cache/stat_hub_api.h"
static const char kAvailDictionaryHeader[] = "Avail-Dictionary";
@@ -288,9 +285,6 @@ void URLRequestHttpJob::NotifyHeadersComplete() {
void URLRequestHttpJob::NotifyDone(const URLRequestStatus& status) {
RecordCompressionHistograms();
- GURL& url = request_info_.url;
- unsigned short url_len = url.spec().length();
- StatHubCmd(INPUT_CMD_CH_URL_REQUEST_DONE, (void*)url.spec().c_str(), url_len+1, NULL, 0);
URLRequestJob::NotifyDone(status);
}
@@ -302,11 +296,6 @@ void URLRequestHttpJob::DestroyTransaction() {
context_ = NULL;
}
-static void updateUrlRequest(const GURL& url, const std::string& headers) {
- unsigned short url_len = url.spec().length();
- StatHubCmd(INPUT_CMD_CH_URL_REQUEST, (void*)url.spec().c_str(), url_len+1, (void*)headers.c_str(), headers.length()+1);
-}
-
void URLRequestHttpJob::StartTransaction() {
// NOTE: This method assumes that request_info_ is already setup properly.
@@ -328,7 +317,6 @@ void URLRequestHttpJob::StartTransaction() {
if (rv == OK) {
if (!URLRequestThrottlerManager::GetInstance()->enforce_throttling() ||
!throttling_entry_->IsDuringExponentialBackoff()) {
- updateUrlRequest(request_info_.url, request_info_.extra_headers.ToString().c_str());
rv = transaction_->Start(
&request_info_, &start_callback_, request_->net_log());
} else {