diff options
author | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-24 00:03:44 +0000 |
---|---|---|
committer | adamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-24 00:03:44 +0000 |
commit | dd29bcd78feba27e2093d0b2cacbd6e9d8e314ef (patch) | |
tree | e6681274f9630a74e9406e0df1ffa9b3a95406a7 /webkit/appcache | |
parent | 1e6f58db132a6e641299f7cb2502dbf88a06b454 (diff) | |
download | chromium_src-dd29bcd78feba27e2093d0b2cacbd6e9d8e314ef.zip chromium_src-dd29bcd78feba27e2093d0b2cacbd6e9d8e314ef.tar.gz chromium_src-dd29bcd78feba27e2093d0b2cacbd6e9d8e314ef.tar.bz2 |
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
Diffstat (limited to 'webkit/appcache')
-rw-r--r-- | webkit/appcache/appcache_url_request_job.cc | 4 | ||||
-rw-r--r-- | webkit/appcache/appcache_url_request_job.h | 3 |
2 files changed, 1 insertions, 6 deletions
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_; |