1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WebServiceWorkerRegistrationProxy_h
6 #define WebServiceWorkerRegistrationProxy_h
10 class WebServiceWorker;
12 // A proxy interface, passed via WebServiceWorkerRegistration.setProxy() from
13 // blink to the embedder, to talk to the ServiceWorkerRegistration object from
15 class WebServiceWorkerRegistrationProxy {
17 // Notifies that the registration entered the installation process.
18 // The installing worker should be accessible via
19 // WebServiceWorkerRegistration.installing.
20 virtual void dispatchUpdateFoundEvent() = 0;
22 virtual void setInstalling(WebServiceWorker*) = 0;
23 virtual void setWaiting(WebServiceWorker*) = 0;
24 virtual void setActive(WebServiceWorker*) = 0;
27 virtual ~WebServiceWorkerRegistrationProxy() { }
32 #endif // WebServiceWorkerRegistrationProxy_h