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

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

Issue 998173002: Revise ServiceWorker DevTools protocols. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ServiceWorkerContextWatcher 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_context_observer.h
diff --git a/content/browser/service_worker/service_worker_context_observer.h b/content/browser/service_worker/service_worker_context_observer.h
index 145a2507c5fc93ac3677e843acfe61c633693772..ca9c57952b5b06b5f256cb9af54ef6f1750027ce 100644
--- a/content/browser/service_worker/service_worker_context_observer.h
+++ b/content/browser/service_worker/service_worker_context_observer.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_
#include "base/strings/string16.h"
+#include "content/browser/service_worker/service_worker_version.h"
#include "url/gurl.h"
namespace content {
@@ -43,8 +44,16 @@ class ServiceWorkerContextObserver {
const int line_number;
const GURL source_url;
};
- virtual void OnRunningStateChanged(int64 version_id) {}
- virtual void OnVersionStateChanged(int64 version_id) {}
+ virtual void OnNewLiveRegistration(int64 registration_id,
+ const GURL& pattern) {}
+ virtual void OnNewLiveVersion(int64 version_id,
+ int64 registration_id,
+ const GURL& script_url) {}
+ virtual void OnRunningStateChanged(
+ int64 version_id,
+ ServiceWorkerVersion::RunningStatus running_status) {}
+ virtual void OnVersionStateChanged(int64 version_id,
+ ServiceWorkerVersion::Status status) {}
virtual void OnErrorReported(int64 version_id,
int process_id,
int thread_id,

Powered by Google App Engine
This is Rietveld 408576698