From dd29bcd78feba27e2093d0b2cacbd6e9d8e314ef Mon Sep 17 00:00:00 2001 From: "adamk@chromium.org" Date: Thu, 24 Mar 2011 00:03:44 +0000 Subject: Move URLRequestJob's histogram logic to URLRequestHttpJob. While this slightly degeneralizes some stats-collection code, the svn history shows that this code has, over several years, only been used for SDCH, and thus it's worth some degeneralization in order to greatly simplify URLRequestJob. BUG=none TEST=try bots Review URL: http://codereview.chromium.org/6713019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79219 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/appcache/appcache_url_request_job.cc | 4 ---- webkit/appcache/appcache_url_request_job.h | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'webkit') diff --git a/webkit/appcache/appcache_url_request_job.cc b/webkit/appcache/appcache_url_request_job.cc index 205458f..f04851f 100644 --- a/webkit/appcache/appcache_url_request_job.cc +++ b/webkit/appcache/appcache_url_request_job.cc @@ -256,10 +256,6 @@ int AppCacheURLRequestJob::GetResponseCode() const { return http_info()->headers->response_code(); } -bool AppCacheURLRequestJob::IsCachedContent() const { - return is_delivering_appcache_response(); -} - bool AppCacheURLRequestJob::ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read) { DCHECK(is_delivering_appcache_response()); diff --git a/webkit/appcache/appcache_url_request_job.h b/webkit/appcache/appcache_url_request_job.h index 1ec9f95..e90f077 100644 --- a/webkit/appcache/appcache_url_request_job.h +++ b/webkit/appcache/appcache_url_request_job.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -118,7 +118,6 @@ class AppCacheURLRequestJob : public net::URLRequestJob, // FilterContext methods virtual bool GetMimeType(std::string* mime_type) const; virtual int GetResponseCode() const; - virtual bool IsCachedContent() const; AppCacheStorage* storage_; bool has_been_started_; -- cgit v1.1