OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "content/browser/service_worker/service_worker_version.h" | 5 #include "content/browser/service_worker/service_worker_version.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 #include <map> | 10 #include <map> |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "content/common/service_worker/embedded_worker_messages.h" | 37 #include "content/common/service_worker/embedded_worker_messages.h" |
38 #include "content/common/service_worker/service_worker_messages.h" | 38 #include "content/common/service_worker/service_worker_messages.h" |
39 #include "content/common/service_worker/service_worker_type_converters.h" | 39 #include "content/common/service_worker/service_worker_type_converters.h" |
40 #include "content/common/service_worker/service_worker_utils.h" | 40 #include "content/common/service_worker/service_worker_utils.h" |
41 #include "content/public/browser/browser_thread.h" | 41 #include "content/public/browser/browser_thread.h" |
42 #include "content/public/browser/content_browser_client.h" | 42 #include "content/public/browser/content_browser_client.h" |
43 #include "content/public/browser/render_process_host.h" | 43 #include "content/public/browser/render_process_host.h" |
44 #include "content/public/common/content_client.h" | 44 #include "content/public/common/content_client.h" |
45 #include "content/public/common/content_switches.h" | 45 #include "content/public/common/content_switches.h" |
46 #include "content/public/common/result_codes.h" | 46 #include "content/public/common/result_codes.h" |
47 #include "content/public/common/service_registry.h" | |
48 #include "mojo/common/common_type_converters.h" | 47 #include "mojo/common/common_type_converters.h" |
49 #include "net/http/http_response_headers.h" | 48 #include "net/http/http_response_headers.h" |
50 #include "net/http/http_response_info.h" | 49 #include "net/http/http_response_info.h" |
51 | 50 |
52 namespace content { | 51 namespace content { |
53 | 52 |
54 using StatusCallback = ServiceWorkerVersion::StatusCallback; | 53 using StatusCallback = ServiceWorkerVersion::StatusCallback; |
55 | 54 |
56 namespace { | 55 namespace { |
57 | 56 |
(...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1712 if (should_exclude_from_uma_ || | 1711 if (should_exclude_from_uma_ || |
1713 running_status() != EmbeddedWorkerStatus::RUNNING || | 1712 running_status() != EmbeddedWorkerStatus::RUNNING || |
1714 idle_time_.is_null()) { | 1713 idle_time_.is_null()) { |
1715 return; | 1714 return; |
1716 } | 1715 } |
1717 ServiceWorkerMetrics::RecordTimeBetweenEvents(base::TimeTicks::Now() - | 1716 ServiceWorkerMetrics::RecordTimeBetweenEvents(base::TimeTicks::Now() - |
1718 idle_time_); | 1717 idle_time_); |
1719 } | 1718 } |
1720 | 1719 |
1721 } // namespace content | 1720 } // namespace content |
OLD | NEW |