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

Unified Diff: content/browser/service_worker/service_worker_info.h

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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_info.h
diff --git a/content/browser/service_worker/service_worker_info.h b/content/browser/service_worker/service_worker_info.h
index fc77c859f0276edb3a77315e93e5a35bb3c6d7a8..dd456be12c963adf431aa7eeeba014c05a36851d 100644
--- a/content/browser/service_worker/service_worker_info.h
+++ b/content/browser/service_worker/service_worker_info.h
@@ -16,6 +16,16 @@ namespace content {
struct CONTENT_EXPORT ServiceWorkerVersionInfo {
public:
+ struct ClientInfo {
+ public:
+ ClientInfo();
+ ClientInfo(int process_id, int frame_id, int shared_worker_route_id);
+ ~ClientInfo();
+ int process_id;
+ int frame_id;
+ int shared_worker_route_id;
nhiroki 2015/06/12 05:48:02 Why don't you merge frame_id and shared_worker_rou
horo 2015/06/12 08:45:43 Done.
+ };
+
ServiceWorkerVersionInfo();
ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status,
ServiceWorkerVersion::Status status,
@@ -37,6 +47,7 @@ struct CONTENT_EXPORT ServiceWorkerVersionInfo {
int devtools_agent_route_id;
base::Time script_response_time;
base::Time script_last_modified;
+ std::map<std::string, ClientInfo> clients;
};
struct CONTENT_EXPORT ServiceWorkerRegistrationInfo {

Powered by Google App Engine
This is Rietveld 408576698