Index: public/platform/WebServiceWorkerRegistrationProxy.h |
diff --git a/public/platform/WebServiceWorkerRegistrationProxy.h b/public/platform/WebServiceWorkerRegistrationProxy.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..57d1404938faaaaa664fd941fc641a816e82052d |
--- /dev/null |
+++ b/public/platform/WebServiceWorkerRegistrationProxy.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2014 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 WebServiceWorkerRegistrationProxy_h |
+#define WebServiceWorkerRegistrationProxy_h |
+ |
+namespace blink { |
+ |
+class WebServiceWorker; |
+ |
+// A proxy interface, passed via WebServiceWorkerRegistration.setProxy() from |
+// blink to the embedder, to talk to the ServiceWorkerRegistration object from |
+// embedder. |
+class WebServiceWorkerRegistrationProxy { |
+public: |
+ WebServiceWorkerRegistrationProxy() { } |
+ virtual ~WebServiceWorkerRegistrationProxy() { } |
+ |
+ // Notifies that the registration entered the installation process. |
+ // The installing worker should be accessible via |
+ // WebServiceWorkerRegistration.installing. |
+ virtual void dispatchUpdateFoundEvent() = 0; |
+ |
+ virtual void setInstalling(WebServiceWorker*) = 0; |
+ virtual void setWaiting(WebServiceWorker*) = 0; |
+ virtual void setActive(WebServiceWorker*) = 0; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // WebServiceWorkerRegistrationProxy_h |