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

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

Issue 998173002: Revise ServiceWorker DevTools protocols. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated kinuko's comment Created 5 years, 9 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 6276eb04e5e95de337a6581737cdc40fbdc4858b..2b217687df0a08dda6fde17dd47521c573bfc15d 100644
--- a/content/browser/service_worker/service_worker_info.h
+++ b/content/browser/service_worker/service_worker_info.h
@@ -13,7 +13,7 @@
namespace content {
-class CONTENT_EXPORT ServiceWorkerVersionInfo {
+struct CONTENT_EXPORT ServiceWorkerVersionInfo {
public:
ServiceWorkerVersionInfo();
ServiceWorkerVersionInfo(ServiceWorkerVersion::RunningStatus running_status,
@@ -36,12 +36,17 @@ class CONTENT_EXPORT ServiceWorkerVersionInfo {
int devtools_agent_route_id;
};
-class CONTENT_EXPORT ServiceWorkerRegistrationInfo {
+struct CONTENT_EXPORT ServiceWorkerRegistrationInfo {
public:
+ enum DeleteFlag { IsNotDeleted, IsDeleted };
kinuko 2015/03/13 12:17:24 enum name should be CAPITAL_NAME (or kCamelName, l
horo 2015/03/13 16:03:30 Done.
ServiceWorkerRegistrationInfo();
+ ServiceWorkerRegistrationInfo(const GURL& pattern,
+ int64 registration_id,
+ DeleteFlag delete_flag);
ServiceWorkerRegistrationInfo(
const GURL& pattern,
int64 registration_id,
+ DeleteFlag delete_flag,
const ServiceWorkerVersionInfo& active_version,
const ServiceWorkerVersionInfo& waiting_version,
const ServiceWorkerVersionInfo& installing_version,
@@ -50,6 +55,7 @@ class CONTENT_EXPORT ServiceWorkerRegistrationInfo {
GURL pattern;
int64 registration_id;
+ DeleteFlag delete_flag;
ServiceWorkerVersionInfo active_version;
ServiceWorkerVersionInfo waiting_version;
ServiceWorkerVersionInfo installing_version;

Powered by Google App Engine
This is Rietveld 408576698