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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // Records the mode of request that was fallbacked to the network. | 151 // Records the mode of request that was fallbacked to the network. |
152 static void RecordFallbackedRequestMode(FetchRequestMode mode); | 152 static void RecordFallbackedRequestMode(FetchRequestMode mode); |
153 | 153 |
154 private: | 154 private: |
155 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); | 155 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); |
156 }; | 156 }; |
157 | 157 |
158 } // namespace content | 158 } // namespace content |
159 | 159 |
160 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ | 160 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ |
OLD | NEW |