Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_APPCACHE_APPCACHE_HISTOGRAMS_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_HISTOGRAMS_H_ |
| 6 #define WEBKIT_APPCACHE_APPCACHE_HISTOGRAMS_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_HISTOGRAMS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 READ_HEADERS_ERROR, READ_DATA_ERROR, UNEXPECTED_DATA_SIZE, CHECK_CANCELED, | 27 READ_HEADERS_ERROR, READ_DATA_ERROR, UNEXPECTED_DATA_SIZE, CHECK_CANCELED, |
| 28 NUM_CHECK_RESPONSE_RESULT_TYPES | 28 NUM_CHECK_RESPONSE_RESULT_TYPES |
| 29 }; | 29 }; |
| 30 static void CountCheckResponseResult(CheckResponseResultType result); | 30 static void CountCheckResponseResult(CheckResponseResultType result); |
| 31 | 31 |
| 32 static void AddTaskQueueTimeSample(const base::TimeDelta& duration); | 32 static void AddTaskQueueTimeSample(const base::TimeDelta& duration); |
| 33 static void AddTaskRunTimeSample(const base::TimeDelta& duration); | 33 static void AddTaskRunTimeSample(const base::TimeDelta& duration); |
| 34 static void AddCompletionQueueTimeSample(const base::TimeDelta& duration); | 34 static void AddCompletionQueueTimeSample(const base::TimeDelta& duration); |
| 35 static void AddCompletionRunTimeSample(const base::TimeDelta& duration); | 35 static void AddCompletionRunTimeSample(const base::TimeDelta& duration); |
| 36 | 36 |
| 37 static void AddMissingManifestEntrySample(); | |
| 38 | |
| 39 enum MissingManifestCallsiteType { | |
| 40 CALLSITE_0, CALLSITE_1, CALLSITE_2, CALLSITE_3, | |
| 41 NUM_MISSING_MANIFEST_CALLSITE_TYPES | |
| 42 }; | |
| 43 static void AddMissingManifstDetectedAtCallsite( | |
|
jennb
2012/05/03 18:43:31
typo
michaeln
2012/05/03 19:03:25
Done.
| |
| 44 MissingManifestCallsiteType type); | |
| 45 | |
| 37 private: | 46 private: |
| 38 DISALLOW_IMPLICIT_CONSTRUCTORS(AppCacheHistograms); | 47 DISALLOW_IMPLICIT_CONSTRUCTORS(AppCacheHistograms); |
| 39 }; | 48 }; |
| 40 | 49 |
| 41 } // namespace appcache | 50 } // namespace appcache |
| 42 | 51 |
| 43 #endif // WEBKIT_APPCACHE_APPCACHE_HISTOGRAMS_H_ | 52 #endif // WEBKIT_APPCACHE_APPCACHE_HISTOGRAMS_H_ |
| OLD | NEW |