blob: e6a7a81627e6a00c19669bd7f68c6159482a5724 [file] [log] [blame]
// 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:
// 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;
protected:
virtual ~WebServiceWorkerRegistrationProxy() { }
};
} // namespace blink
#endif // WebServiceWorkerRegistrationProxy_h