| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "content/browser/service_worker/service_worker_database.h" | 9 #include "content/browser/service_worker/service_worker_database.h" |
| 10 #include "content/common/service_worker/service_worker_types.h" | 10 #include "content/common/service_worker/service_worker_types.h" |
| 11 #include "third_party/WebKit/public/platform/WebServiceWorkerResponseError.h" | 11 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerResponseError.h" |
| 12 | 12 |
| 13 class GURL; | 13 class GURL; |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 class ServiceWorkerMetrics { | 17 class ServiceWorkerMetrics { |
| 18 public: | 18 public: |
| 19 enum ReadResponseResult { | 19 enum ReadResponseResult { |
| 20 READ_OK, | 20 READ_OK, |
| 21 READ_HEADERS_ERROR, | 21 READ_HEADERS_ERROR, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // previous event ended). | 164 // previous event ended). |
| 165 static void RecordTimeBetweenEvents(const base::TimeDelta& time); | 165 static void RecordTimeBetweenEvents(const base::TimeDelta& time); |
| 166 | 166 |
| 167 private: | 167 private: |
| 168 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 168 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace content | 171 } // namespace content |
| 172 | 172 |
| 173 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 173 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
| OLD | NEW |