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

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

Issue 1149383004: [3/5 chromium] Shows the clients which are controlled by ServiceWorker in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated dcheng's comment Created 5 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/common/service_worker/service_worker_types.h" 7 #include "content/common/service_worker/service_worker_types.h"
8 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 ServiceWorkerVersionInfo::ClientInfo::ClientInfo()
13 : ClientInfo(-1, MSG_ROUTING_NONE, SERVICE_WORKER_PROVIDER_UNKNOWN) {
14 }
15
16 ServiceWorkerVersionInfo::ClientInfo::ClientInfo(int process_id,
17 int route_id,
18 ServiceWorkerProviderType type)
19 : process_id(process_id), route_id(route_id), type(type) {
20 }
21
22 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() {
23 }
24
12 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() 25 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo()
13 : running_status(ServiceWorkerVersion::STOPPED), 26 : running_status(ServiceWorkerVersion::STOPPED),
14 status(ServiceWorkerVersion::NEW), 27 status(ServiceWorkerVersion::NEW),
15 registration_id(kInvalidServiceWorkerRegistrationId), 28 registration_id(kInvalidServiceWorkerRegistrationId),
16 version_id(kInvalidServiceWorkerVersionId), 29 version_id(kInvalidServiceWorkerVersionId),
17 process_id(-1), 30 process_id(-1),
18 thread_id(-1), 31 thread_id(-1),
19 devtools_agent_route_id(MSG_ROUTING_NONE) { 32 devtools_agent_route_id(MSG_ROUTING_NONE) {
20 } 33 }
21 34
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 delete_flag(delete_flag), 82 delete_flag(delete_flag),
70 active_version(active_version), 83 active_version(active_version),
71 waiting_version(waiting_version), 84 waiting_version(waiting_version),
72 installing_version(installing_version), 85 installing_version(installing_version),
73 stored_version_size_bytes(stored_version_size_bytes) { 86 stored_version_size_bytes(stored_version_size_bytes) {
74 } 87 }
75 88
76 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} 89 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {}
77 90
78 } // namespace content 91 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_info.h ('k') | content/browser/service_worker/service_worker_provider_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698