summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache_transaction.h
diff options
context:
space:
mode:
authorgavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-17 12:28:42 +0000
committergavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-17 12:28:42 +0000
commitde206bb758daa9b4c79863e8b64a9c39d2758b35 (patch)
treef4e2f8bfadbc99cb12040d727e4524a3459eb32c /net/http/http_cache_transaction.h
parent30c5656610da96b6b26cb0206d66c83b72afdd59 (diff)
downloadchromium_src-de206bb758daa9b4c79863e8b64a9c39d2758b35.zip
chromium_src-de206bb758daa9b4c79863e8b64a9c39d2758b35.tar.gz
chromium_src-de206bb758daa9b4c79863e8b64a9c39d2758b35.tar.bz2
Track unconditionalizable http requests.
Occasionally the disk cache has a hit for an entry that cannot be used because it is out of freshness, but lacks a validator. Track these in the http request pattern histograms, since these are an interesting type of cached resource (they're in the cache, but useless except for forward/back). R=rvargas@chromium.org Review URL: https://chromiumcodereview.appspot.com/11362192 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168411 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache_transaction.h')
-rw-r--r--net/http/http_cache_transaction.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h
index 7046a93..35fd0c4 100644
--- a/net/http/http_cache_transaction.h
+++ b/net/http/http_cache_transaction.h
@@ -181,6 +181,8 @@ class HttpCache::Transaction : public HttpTransaction {
// cover relatively common use cases being measured and considered for
// optimization. Many use cases that are more complex or uncommon are binned
// as PATTERN_NOT_COVERED, and details are not reported.
+ // NOTE: This enumeration is used in histograms, so please do not add entries
+ // in the middle.
enum TransactionPattern {
PATTERN_UNDEFINED,
PATTERN_NOT_COVERED,
@@ -188,6 +190,8 @@ class HttpCache::Transaction : public HttpTransaction {
PATTERN_ENTRY_USED,
PATTERN_ENTRY_VALIDATED,
PATTERN_ENTRY_UPDATED,
+ PATTERN_ENTRY_CANT_CONDITIONALIZE,
+ PATTERN_MAX,
};
// This is a helper function used to trigger a completion callback. It may