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

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..094cb184bddf6d7ec1a6972bd50b8e1dea8f78a2 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 route_id, ServiceWorkerProviderType type);
+ ~ClientInfo();
+ int process_id;
+ int route_id;
+ ServiceWorkerProviderType type;
+ };
+
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