| Index: Source/modules/serviceworkers/ServiceWorkerContainer.h
|
| diff --git a/Source/modules/serviceworkers/NavigatorServiceWorkerInterface.h b/Source/modules/serviceworkers/ServiceWorkerContainer.h
|
| similarity index 84%
|
| rename from Source/modules/serviceworkers/NavigatorServiceWorkerInterface.h
|
| rename to Source/modules/serviceworkers/ServiceWorkerContainer.h
|
| index fb1c2aa34c48100dfdc6db1037f6758e1f2597ad..50d97b79d8a650b37db64df178194b129a0c3421 100644
|
| --- a/Source/modules/serviceworkers/NavigatorServiceWorkerInterface.h
|
| +++ b/Source/modules/serviceworkers/ServiceWorkerContainer.h
|
| @@ -28,8 +28,8 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef NavigatorServiceWorkerInterface_h
|
| -#define NavigatorServiceWorkerInterface_h
|
| +#ifndef ServiceWorkerContainer_h
|
| +#define ServiceWorkerContainer_h
|
|
|
| #include "bindings/v8/ScriptPromise.h"
|
| #include "bindings/v8/ScriptWrappable.h"
|
| @@ -46,16 +46,16 @@ namespace WebCore {
|
| class Dictionary;
|
| class ExecutionContext;
|
|
|
| -class NavigatorServiceWorkerInterface FINAL : public RefCounted<NavigatorServiceWorkerInterface>, public ScriptWrappable {
|
| +class ServiceWorkerContainer FINAL : public RefCounted<ServiceWorkerContainer>, public ScriptWrappable {
|
| public:
|
| - static PassRefPtr<NavigatorServiceWorkerInterface> create();
|
| - ~NavigatorServiceWorkerInterface();
|
| + static PassRefPtr<ServiceWorkerContainer> create();
|
| + ~ServiceWorkerContainer();
|
|
|
| ScriptPromise registerServiceWorker(ExecutionContext*, const String& pattern, const Dictionary&);
|
| ScriptPromise unregisterServiceWorker(ExecutionContext*, const String& scope = String());
|
|
|
| private:
|
| - NavigatorServiceWorkerInterface();
|
| + ServiceWorkerContainer();
|
| blink::WebServiceWorkerProvider* ensureProvider(ExecutionContext*);
|
|
|
| OwnPtr<blink::WebServiceWorkerProvider> m_provider;
|
| @@ -63,4 +63,4 @@ private:
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // NavigatorServiceWorkerInterface_h
|
| +#endif // ServiceWorkerContainer_h
|
|
|