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

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 nhiroki'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()
nhiroki 2015/06/12 05:48:01 Is this ctor used?
horo 2015/06/12 08:45:42 We need it to use ClientInfo as a value type of ma
13 : process_id(-1),
14 frame_id(MSG_ROUTING_NONE),
15 shared_worker_route_id(MSG_ROUTING_NONE) {
nhiroki 2015/06/12 05:48:01 How about using the delegated ctor?
horo 2015/06/12 08:45:42 Done.
16 }
17
18 ServiceWorkerVersionInfo::ClientInfo::ClientInfo(int process_id,
19 int frame_id,
20 int shared_worker_route_id)
21 : process_id(process_id),
22 frame_id(frame_id),
23 shared_worker_route_id(shared_worker_route_id) {
24 }
25
26 ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() {
27 }
28
12 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo() 29 ServiceWorkerVersionInfo::ServiceWorkerVersionInfo()
13 : running_status(ServiceWorkerVersion::STOPPED), 30 : running_status(ServiceWorkerVersion::STOPPED),
14 status(ServiceWorkerVersion::NEW), 31 status(ServiceWorkerVersion::NEW),
15 registration_id(kInvalidServiceWorkerRegistrationId), 32 registration_id(kInvalidServiceWorkerRegistrationId),
16 version_id(kInvalidServiceWorkerVersionId), 33 version_id(kInvalidServiceWorkerVersionId),
17 process_id(-1), 34 process_id(-1),
18 thread_id(-1), 35 thread_id(-1),
19 devtools_agent_route_id(MSG_ROUTING_NONE) { 36 devtools_agent_route_id(MSG_ROUTING_NONE) {
20 } 37 }
21 38
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 delete_flag(delete_flag), 86 delete_flag(delete_flag),
70 active_version(active_version), 87 active_version(active_version),
71 waiting_version(waiting_version), 88 waiting_version(waiting_version),
72 installing_version(installing_version), 89 installing_version(installing_version),
73 stored_version_size_bytes(stored_version_size_bytes) { 90 stored_version_size_bytes(stored_version_size_bytes) {
74 } 91 }
75 92
76 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {} 93 ServiceWorkerRegistrationInfo::~ServiceWorkerRegistrationInfo() {}
77 94
78 } // namespace content 95 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698