Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1565)

Unified Diff: Source/modules/serviceworkers/ServiceWorkerContainer.cpp

Issue 130693010: Rename NavigatorServiceWorkerInterface to ServiceWorkerContainer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerContainer.h ('k') | Source/modules/serviceworkers/ServiceWorkerContainer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698