Index: public/platform/WebServiceWorkerRegistrationProxy.h |
diff --git a/public/platform/WebServiceWorkerRegistrationProxy.h b/public/platform/WebServiceWorkerRegistrationProxy.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a9f9082638ed4967f6dbcef2a0a1f06fc0d1d048 |
--- /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 enters the installation process. |
falken
2014/08/08 10:09:02
will enter? or entered?
nhiroki
2014/08/08 10:36:24
Done. This event is fired after the worker is mark
|
+ // 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 |