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

Unified Diff: public/platform/WebServiceWorker.h

Issue 380923002: Introducing the WebServiceWorkerCacheStorage. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase only Created 6 years, 5 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: public/platform/WebServiceWorker.h
diff --git a/public/platform/WebServiceWorker.h b/public/platform/WebServiceWorker.h
index 52ad440463796cc4c865bee1001d530c5a31e237..ee5448fd7ac9f2fe4cccc2e5b4c9f1c00693588c 100644
--- a/public/platform/WebServiceWorker.h
+++ b/public/platform/WebServiceWorker.h
@@ -40,6 +40,7 @@
namespace blink {
+class WebServiceWorkerCacheStorage;
class WebServiceWorkerProxy;
typedef WebVector<class WebMessagePortChannel*> WebMessagePortChannelArray;
@@ -47,9 +48,13 @@ class WebServiceWorker {
public:
virtual ~WebServiceWorker() { }
- // Sets ServiceWorkerProxy, with which callee can start making upcalls
- // to the ServiceWorker object via the client. This doesn't pass the
- // ownership to the callee, and the proxy's lifetime is same as that of
+ // Provides an implementation of the WebCacheStorage API to blink from the
+ // embedder.
+ virtual WebServiceWorkerCacheStorage* cacheStorage() { return 0; }
+
+ // Sets ServiceWorkerProxy, with which callee can start making upcalls to
+ // the ServiceWorker object via the client. This doesn't pass the ownership
+ // to the callee, and the proxy's lifetime is same as that of
// WebServiceWorker.
virtual void setProxy(WebServiceWorkerProxy*) { }
virtual WebServiceWorkerProxy* proxy() { return 0; }

Powered by Google App Engine
This is Rietveld 408576698