summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_histograms.h
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-01 19:40:21 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-01 19:40:21 +0000
commitc4925d5805396a5e15ae4297b6173b5ed2610a93 (patch)
treee821154e001de7b637657f8f5b096000cb482be2 /webkit/appcache/appcache_histograms.h
parent93330676dddfffc05a070df8e7b7e91fd5801ca2 (diff)
downloadchromium_src-c4925d5805396a5e15ae4297b6173b5ed2610a93.zip
chromium_src-c4925d5805396a5e15ae4297b6173b5ed2610a93.tar.gz
chromium_src-c4925d5805396a5e15ae4297b6173b5ed2610a93.tar.bz2
AppCache: If we can't read the existing data delete it and start over.
BUG=38360 TEST=some unit tests apply, but no new tests for this specifically Review URL: http://codereview.chromium.org/1562005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43371 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_histograms.h')
-rw-r--r--webkit/appcache/appcache_histograms.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_histograms.h b/webkit/appcache/appcache_histograms.h
new file mode 100644
index 0000000..431c6bd
--- /dev/null
+++ b/webkit/appcache/appcache_histograms.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2010 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.
+
+#ifndef WEBKIT_APPCACHE_APPCACHE_HISTOGRAMS_H_
+#define WEBKIT_APPCACHE_APPCACHE_HISTOGRAMS_H_
+
+namespace appcache {
+
+class AppCacheHistograms {
+ public:
+ enum InitResultType {
+ INIT_OK, SQL_DATABASE_ERROR, DISK_CACHE_ERROR,
+ NUM_INIT_RESULT_TYPES
+ };
+ static void CountInitResult(InitResultType init_result);
+};
+
+} // namespace appcache
+
+#endif // WEBKIT_APPCACHE_APPCACHE_HISTOGRAMS_H_