Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / modules / serviceworker / WebServiceWorkerProxy.h
blobe1c8c26e96d944f1bff96d3cc6b46949f682ebf8
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 WebServiceWorkerProxy_h
6 #define WebServiceWorkerProxy_h
8 #include "public/platform/WebCommon.h"
10 namespace blink {
12 // A proxy interface, passed via WebServiceWorker.setProxy() from blink to
13 // the embedder, to talk to the ServiceWorker object from embedder.
14 class BLINK_PLATFORM_EXPORT WebServiceWorkerProxy {
15 public:
16 // Notifies the proxy that the service worker state changed. The new state
17 // should be accessible via WebServiceWorker.state().
18 virtual void dispatchStateChangeEvent() = 0;
20 protected:
21 virtual ~WebServiceWorkerProxy() { }
24 } // namespace blink
26 #endif // WebServiceWorkerProxy_h