Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: content/browser/service_worker/service_worker_version.cc

Issue 2105653002: Delete content::ServiceRegistry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ew
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/service_worker/embedded_worker_test_helper.h ('k') | content/browser/wake_lock/wake_lock_service_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698