| 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 28 matching lines...) Expand all Loading... |
| 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" | 47 #include "content/public/common/service_registry.h" |
| 48 #include "mojo/common/common_type_converters.h" | 48 #include "mojo/common/common_type_converters.h" |
| 49 #include "mojo/common/url_type_converters.h" | |
| 50 #include "net/http/http_response_headers.h" | 49 #include "net/http/http_response_headers.h" |
| 51 #include "net/http/http_response_info.h" | 50 #include "net/http/http_response_info.h" |
| 52 | 51 |
| 53 namespace content { | 52 namespace content { |
| 54 | 53 |
| 55 using StatusCallback = ServiceWorkerVersion::StatusCallback; | 54 using StatusCallback = ServiceWorkerVersion::StatusCallback; |
| 56 | 55 |
| 57 namespace { | 56 namespace { |
| 58 | 57 |
| 59 // Time to wait until stopping an idle worker. | 58 // Time to wait until stopping an idle worker. |
| (...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1713 if (should_exclude_from_uma_ || | 1712 if (should_exclude_from_uma_ || |
| 1714 running_status() != EmbeddedWorkerStatus::RUNNING || | 1713 running_status() != EmbeddedWorkerStatus::RUNNING || |
| 1715 idle_time_.is_null()) { | 1714 idle_time_.is_null()) { |
| 1716 return; | 1715 return; |
| 1717 } | 1716 } |
| 1718 ServiceWorkerMetrics::RecordTimeBetweenEvents(base::TimeTicks::Now() - | 1717 ServiceWorkerMetrics::RecordTimeBetweenEvents(base::TimeTicks::Now() - |
| 1719 idle_time_); | 1718 idle_time_); |
| 1720 } | 1719 } |
| 1721 | 1720 |
| 1722 } // namespace content | 1721 } // namespace content |
| OLD | NEW |