From 657fb1c9269ce235b66a0f32c9bf0afc64fa7c77 Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Mon, 19 Nov 2012 14:53:55 +0000 Subject: Revert "net: networking optimizations" This reverts commit 5fbe95affc8eeed93c678b1d271f64dcc4dd919b. --- net/url_request/url_request_http_job.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'net/url_request/url_request_http_job.cc') 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 { -- cgit v1.1