| Index: Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| diff --git a/Source/modules/serviceworkers/NavigatorServiceWorkerInterface.cpp b/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| similarity index 86%
|
| rename from Source/modules/serviceworkers/NavigatorServiceWorkerInterface.cpp
|
| rename to Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| index 8a300977c151a44a91a55ae5f2e699b93a2733cf..b903ee2a3aeae9a9c208edd1cde6bfcef69e3c13 100644
|
| --- a/Source/modules/serviceworkers/NavigatorServiceWorkerInterface.cpp
|
| +++ b/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| @@ -28,7 +28,7 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
| #include "config.h"
|
| -#include "modules/serviceworkers/NavigatorServiceWorkerInterface.h"
|
| +#include "modules/serviceworkers/ServiceWorkerContainer.h"
|
|
|
| #include "RuntimeEnabledFeatures.h"
|
| #include "bindings/v8/CallbackPromiseAdapter.h"
|
| @@ -49,16 +49,16 @@ using blink::WebServiceWorkerProvider;
|
|
|
| namespace WebCore {
|
|
|
| -PassRefPtr<NavigatorServiceWorkerInterface> NavigatorServiceWorkerInterface::create()
|
| +PassRefPtr<ServiceWorkerContainer> ServiceWorkerContainer::create()
|
| {
|
| - return adoptRef(new NavigatorServiceWorkerInterface());
|
| + return adoptRef(new ServiceWorkerContainer());
|
| }
|
|
|
| -NavigatorServiceWorkerInterface::~NavigatorServiceWorkerInterface()
|
| +ServiceWorkerContainer::~ServiceWorkerContainer()
|
| {
|
| }
|
|
|
| -ScriptPromise NavigatorServiceWorkerInterface::registerServiceWorker(ExecutionContext* executionContext, const String& url, const Dictionary& dictionary)
|
| +ScriptPromise ServiceWorkerContainer::registerServiceWorker(ExecutionContext* executionContext, const String& url, const Dictionary& dictionary)
|
| {
|
| RegistrationOptionList options(dictionary);
|
| ASSERT(RuntimeEnabledFeatures::serviceWorkerEnabled());
|
| @@ -82,7 +82,7 @@ ScriptPromise NavigatorServiceWorkerInterface::registerServiceWorker(ExecutionCo
|
| return promise;
|
| }
|
|
|
| -ScriptPromise NavigatorServiceWorkerInterface::unregisterServiceWorker(ExecutionContext* executionContext, const String& pattern)
|
| +ScriptPromise ServiceWorkerContainer::unregisterServiceWorker(ExecutionContext* executionContext, const String& pattern)
|
| {
|
| ASSERT(RuntimeEnabledFeatures::serviceWorkerEnabled());
|
| ScriptPromise promise = ScriptPromise::createPending(executionContext);
|
| @@ -100,12 +100,12 @@ ScriptPromise NavigatorServiceWorkerInterface::unregisterServiceWorker(Execution
|
| return promise;
|
| }
|
|
|
| -NavigatorServiceWorkerInterface::NavigatorServiceWorkerInterface()
|
| +ServiceWorkerContainer::ServiceWorkerContainer()
|
| {
|
| ScriptWrappable::init(this);
|
| }
|
|
|
| -WebServiceWorkerProvider* NavigatorServiceWorkerInterface::ensureProvider(ExecutionContext* executionContext)
|
| +WebServiceWorkerProvider* ServiceWorkerContainer::ensureProvider(ExecutionContext* executionContext)
|
| {
|
| if (!m_provider) {
|
| // FIXME: This is temporarily hooked up here until we hook up to the loading process, or should be replaced with an interface that is dedicated for scripting.
|
|
|