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

Unified Diff: Source/core/workers/WorkerGlobalScope.h

Issue 929953002: CachedMetadata support for ServiceWorker script. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WorkerGlobalScope::createWorkerScriptCachedMetadataHandler Created 5 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/core/workers/WorkerGlobalScope.h
diff --git a/Source/core/workers/WorkerGlobalScope.h b/Source/core/workers/WorkerGlobalScope.h
index 0b037b6093192dd3569b522d45ab2d7772cc5770..9ead6b488eb4ccc2793f44af2e7e119088eed35f 100644
--- a/Source/core/workers/WorkerGlobalScope.h
+++ b/Source/core/workers/WorkerGlobalScope.h
@@ -31,6 +31,7 @@
#include "core/dom/ExecutionContext.h"
#include "core/events/EventListener.h"
#include "core/events/EventTarget.h"
+#include "core/fetch/CachedMetadataHandler.h"
#include "core/frame/DOMTimerCoordinator.h"
#include "core/frame/DOMWindowBase64.h"
#include "core/frame/UseCounter.h"
@@ -99,6 +100,9 @@ public:
// WorkerUtils
virtual void importScripts(const Vector<String>& urls, ExceptionState&);
+ // Returns null if caching is not supported.
+ virtual PassOwnPtr<CachedMetadataHandler> createWorkerScriptCachedMetadataHandler(const KURL& /* scriptURL */, const Vector<char>* /* metaData */) { return nullptr; }
kinuko 2015/02/17 07:56:46 nit: I don't think we need to make the parameter n
horo 2015/02/17 08:20:27 Done.
+
WorkerNavigator* navigator() const;
// ExecutionContextClient

Powered by Google App Engine
This is Rietveld 408576698