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

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

Issue 2334003004: Show the fetch handler existence in chrome://serviceworker-internals (Closed)
Patch Set: Created 4 years, 3 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.cc
diff --git a/content/browser/service_worker/service_worker_info.cc b/content/browser/service_worker/service_worker_info.cc
index 47e0d139631ea63359217635da3fd3d23aa5d32c..8ba8ac2b2f39c80325122a3502ccf803bf2c10ce 100644
--- a/content/browser/service_worker/service_worker_info.cc
+++ b/content/browser/service_worker/service_worker_info.cc
@@ -28,6 +28,8 @@ ServiceWorkerVersionInfo::ClientInfo::~ClientInfo() {
ServiceWorkerVersionInfo::ServiceWorkerVersionInfo()
: running_status(EmbeddedWorkerStatus::STOPPED),
status(ServiceWorkerVersion::NEW),
+ fetch_handler_existence(
+ ServiceWorkerVersion::FetchHandlerExistence::UNKNOWN),
registration_id(kInvalidServiceWorkerRegistrationId),
version_id(kInvalidServiceWorkerVersionId),
process_id(ChildProcessHost::kInvalidUniqueID),
@@ -37,6 +39,7 @@ ServiceWorkerVersionInfo::ServiceWorkerVersionInfo()
ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
EmbeddedWorkerStatus running_status,
ServiceWorkerVersion::Status status,
+ ServiceWorkerVersion::FetchHandlerExistence fetch_handler_existence,
const GURL& script_url,
int64_t registration_id,
int64_t version_id,
@@ -45,6 +48,7 @@ ServiceWorkerVersionInfo::ServiceWorkerVersionInfo(
int devtools_agent_route_id)
: running_status(running_status),
status(status),
+ fetch_handler_existence(fetch_handler_existence),
script_url(script_url),
registration_id(registration_id),
version_id(version_id),
« 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