From c4925d5805396a5e15ae4297b6173b5ed2610a93 Mon Sep 17 00:00:00 2001 From: "michaeln@chromium.org" Date: Thu, 1 Apr 2010 19:40:21 +0000 Subject: 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 --- webkit/appcache/appcache_histograms.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 webkit/appcache/appcache_histograms.h (limited to 'webkit/appcache/appcache_histograms.h') 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_ -- cgit v1.1