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

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

Issue 2039743003: Introduce ServiceWorker.ActivatedWorkerPreparationForMainFrame.Time UMA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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 #include "content/browser/service_worker/service_worker_info.h" 5 #include "content/browser/service_worker/service_worker_info.h"
6 6
7 #include "content/browser/service_worker/embedded_worker_status.h"
7 #include "content/common/service_worker/service_worker_types.h" 8 #include "content/common/service_worker/service_worker_types.h"
8 #include "content/public/common/child_process_host.h" 9 #include "content/public/common/child_process_host.h"
9 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
10 11
11 namespace content { 12 namespace content {
12 13
13 ServiceWorkerVersionInfo::ClientInfo::ClientInfo() 14 ServiceWorkerVersionInfo::ClientInfo::ClientInfo()
14 : ClientInfo(ChildProcessHost::kInvalidUniqueID, 15 : ClientInfo(ChildProcessHost::kInvalidUniqueID,
15 MSG_ROUTING_NONE, 16 MSG_ROUTING_NONE,
16 SERVICE_WORKER_PROVIDER_UNKNOWN) {} 17 SERVICE_WORKER_PROVIDER_UNKNOWN) {}
17 18
18 ServiceWorkerVersionInfo::ClientInfo::ClientInfo(int process_id, 19 ServiceWorkerVersionInfo::ClientInfo::ClientInfo(int process_id,
19 int route_id, 20 int route_id,
20 ServiceWorkerProviderType type) 21 ServiceWorkerProviderType type)
21 : process_id(process_id), route_id(route_id), type(type) { 22 : process_id(process_id), route_id(route_id), type(type) {
22 } 23 }
23 24
24 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() { 25 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() {
25 } 26 }
26 27
27 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() 28 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo()
28 : running_status(ServiceWorkerVersion::STOPPED), 29 : running_status(EmbeddedWorkerStatus::STOPPED),
29 status(ServiceWorkerVersion::NEW), 30 status(ServiceWorkerVersion::NEW),
30 registration_id(kInvalidServiceWorkerRegistrationId), 31 registration_id(kInvalidServiceWorkerRegistrationId),
31 version_id(kInvalidServiceWorkerVersionId), 32 version_id(kInvalidServiceWorkerVersionId),
32 process_id(ChildProcessHost::kInvalidUniqueID), 33 process_id(ChildProcessHost::kInvalidUniqueID),
33 thread_id(kInvalidEmbeddedWorkerThreadId), 34 thread_id(kInvalidEmbeddedWorkerThreadId),
34 devtools_agent_route_id(MSG_ROUTING_NONE) {} 35 devtools_agent_route_id(MSG_ROUTING_NONE) {}
35 36
36 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo( 37 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
37 ServiceWorkerVersion::RunningStatus running_status, 38 EmbeddedWorkerStatus running_status,
38 ServiceWorkerVersion::Status status, 39 ServiceWorkerVersion::Status status,
39 const GURL& script_url, 40 const GURL& script_url,
40 int64_t registration_id, 41 int64_t registration_id,
41 int64_t version_id, 42 int64_t version_id,
42 int process_id, 43 int process_id,
43 int thread_id, 44 int thread_id,
44 int devtools_agent_route_id) 45 int devtools_agent_route_id)
45 : running_status(running_status), 46 : running_status(running_status),
46 status(status), 47 status(status),
47 script_url(script_url), 48 script_url(script_url),
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 waiting_version(waiting_version), 86 waiting_version(waiting_version),
86 installing_version(installing_version), 87 installing_version(installing_version),
87 stored_version_size_bytes(stored_version_size_bytes) {} 88 stored_version_size_bytes(stored_version_size_bytes) {}
88 89
89 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo( 90 ServiceWorkerRegistrationInfo::ServiceWorkerRegistrationInfo(
90 const ServiceWorkerRegistrationInfo& other) = default; 91 const ServiceWorkerRegistrationInfo& other) = default;
91 92
92 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} 93 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {}
93 94
94 } // namespace content 95 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_info.h ('k') | content/browser/service_worker/service_worker_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698