Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / public / platform / WebServiceWorkerRegistrationProxy.h
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.
4
5 #ifndef WebServiceWorkerRegistrationProxy_h
6 #define WebServiceWorkerRegistrationProxy_h
7
8 namespace blink {
9
10 class WebServiceWorker;
11
12 // A proxy interface, passed via WebServiceWorkerRegistration.setProxy() from
13 // blink to the embedder, to talk to the ServiceWorkerRegistration object from
14 // embedder.
15 class WebServiceWorkerRegistrationProxy {
16 public:
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;
21
22     virtual void setInstalling(WebServiceWorker*) = 0;
23     virtual void setWaiting(WebServiceWorker*) = 0;
24     virtual void setActive(WebServiceWorker*) = 0;
25
26 protected:
27     virtual ~WebServiceWorkerRegistrationProxy() { }
28 };
29
30 } // namespace blink
31
32 #endif // WebServiceWorkerRegistrationProxy_h