Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: webkit/browser/appcache/appcache_histograms.h

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/browser/appcache/appcache_histograms.h
diff --git a/webkit/browser/appcache/appcache_histograms.h b/webkit/browser/appcache/appcache_histograms.h
deleted file mode 100644
index 21cae36aa7ad535dcfb4e6890d5485851490b1e1..0000000000000000000000000000000000000000
--- a/webkit/browser/appcache/appcache_histograms.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) 2012 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_BROWSER_APPCACHE_APPCACHE_HISTOGRAMS_H_
-#define WEBKIT_BROWSER_APPCACHE_APPCACHE_HISTOGRAMS_H_
-
-#include "base/basictypes.h"
-#include "webkit/browser/appcache/appcache_update_job.h"
-
-namespace base {
-class TimeDelta;
-}
-
-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);
- static void CountReinitAttempt(bool repeated_attempt);
- static void CountCorruptionDetected();
- static void CountUpdateJobResult(AppCacheUpdateJob::ResultType result,
- const GURL& origin_url);
- enum CheckResponseResultType {
- RESPONSE_OK, MANIFEST_OUT_OF_DATE, RESPONSE_OUT_OF_DATE, ENTRY_NOT_FOUND,
- READ_HEADERS_ERROR, READ_DATA_ERROR, UNEXPECTED_DATA_SIZE, CHECK_CANCELED,
- NUM_CHECK_RESPONSE_RESULT_TYPES
- };
- static void CountCheckResponseResult(CheckResponseResultType result);
- static void CountResponseRetrieval(
- bool success, bool is_main_resource, const GURL& origin_url);
- static void LogUpdateFailureStats(
- const GURL& origin_url,
- int percent_complete,
- bool was_making_progress,
- bool off_origin_resource_failure);
- static void AddTaskQueueTimeSample(const base::TimeDelta& duration);
- static void AddTaskRunTimeSample(const base::TimeDelta& duration);
- static void AddCompletionQueueTimeSample(const base::TimeDelta& duration);
- static void AddCompletionRunTimeSample(const base::TimeDelta& duration);
- static void AddNetworkJobStartDelaySample(const base::TimeDelta& duration);
- static void AddErrorJobStartDelaySample(const base::TimeDelta& duration);
- static void AddAppCacheJobStartDelaySample(const base::TimeDelta& duration);
- static void AddMissingManifestEntrySample();
-
- enum MissingManifestCallsiteType {
- CALLSITE_0, CALLSITE_1, CALLSITE_2, CALLSITE_3,
- NUM_MISSING_MANIFEST_CALLSITE_TYPES
- };
- static void AddMissingManifestDetectedAtCallsite(
- MissingManifestCallsiteType type);
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(AppCacheHistograms);
-};
-
-} // namespace appcache
-
-#endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_HISTOGRAMS_H_

Powered by Google App Engine
This is Rietveld 408576698