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

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

Issue 2934163003: Add a ServiceWorkerContextObserver to content's public API. (Closed)
Patch Set: Clarifying comment Created 3 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
« no previous file with comments | « content/public/browser/service_worker_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/service_worker_context_observer.h
diff --git a/content/public/browser/service_worker_context_observer.h b/content/public/browser/service_worker_context_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..2fc757d673e62af305d6fd5c4e7aa8a2394bcb50
--- /dev/null
+++ b/content/public/browser/service_worker_context_observer.h
@@ -0,0 +1,23 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_CONTEXT_OBSERVER_H_
+#define CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_CONTEXT_OBSERVER_H_
+
+#include "url/gurl.h"
+
+namespace content {
+
+class ServiceWorkerContextObserver {
+ public:
+ // Called when a service worker has been registered with scope |pattern|.
+ virtual void OnRegistrationStored(const GURL& pattern) {}
+
+ protected:
+ virtual ~ServiceWorkerContextObserver() {}
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_SERVICE_WORKER_CONTEXT_OBSERVER_H_
« no previous file with comments | « content/public/browser/service_worker_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698