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

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

Issue 311233007: ServiceWorker, remove old Cache API implementation to make way for the polyfill. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/modules/serviceworkers/Cache.h ('k') | Source/modules/serviceworkers/Cache.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Cache.cpp
diff --git a/Source/modules/serviceworkers/Cache.cpp b/Source/modules/serviceworkers/Cache.cpp
deleted file mode 100644
index 14ab34024b13c0a9371ebdb47078ee51b35f7ec0..0000000000000000000000000000000000000000
--- a/Source/modules/serviceworkers/Cache.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-// 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.
-
-#include "config.h"
-#include "modules/serviceworkers/Cache.h"
-
-#include "bindings/v8/ScriptPromise.h"
-#include "bindings/v8/ScriptPromiseResolver.h"
-#include "core/dom/DOMError.h"
-#include "core/dom/ExceptionCode.h"
-#include "platform/NotImplemented.h"
-
-namespace WebCore {
-
-PassRefPtr<Cache> Cache::create(const Vector<String>& urlStrings)
-{
- RefPtr<Cache> cache = adoptRef(new Cache);
- // FIXME: Implement.
- notImplemented();
- return cache;
-}
-
-Cache::~Cache()
-{
-}
-
-ScriptPromise Cache::match(ScriptState* scriptState, const String& urlString)
-{
- RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
- ScriptPromise promise = resolver->promise();
-
- // FIXME: Implement.
- notImplemented();
- resolver->reject(DOMError::create(NotSupportedError));
- return promise;
-}
-
-ScriptPromise Cache::ready(ScriptState* scriptState)
-{
- RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
- ScriptPromise promise = resolver->promise();
-
- // FIXME: Implement.
- notImplemented();
- resolver->reject(DOMError::create(NotSupportedError));
- return promise;
-}
-
-Cache::Cache()
-{
- ScriptWrappable::init(this);
-}
-
-} // namespace WebCore
« no previous file with comments | « Source/modules/serviceworkers/Cache.h ('k') | Source/modules/serviceworkers/Cache.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698