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

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

Issue 929953002: CachedMetadata support for ServiceWorker script. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated vivekg's comment 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/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
index ab46ee36bcf4d8f8aa6e242c2169c7b3aea44188..a27f2d837e40a68c0235096575612b5f6ad541c7 100644
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp
@@ -211,6 +211,16 @@ void ServiceWorkerGlobalScope::importScripts(const Vector<String>& urls, Excepti
WorkerGlobalScope::importScripts(urls, exceptionState);
}
+void ServiceWorkerGlobalScope::setCachedMetadata(const KURL& url, const char* data, size_t size)
+{
+ ServiceWorkerGlobalScopeClient::from(this)->setCachedMetadata(url, data, size);
+}
+
+void ServiceWorkerGlobalScope::clearCachedMetadata(const KURL& url)
+{
+ ServiceWorkerGlobalScopeClient::from(this)->clearCachedMetadata(url);
+}
+
void ServiceWorkerGlobalScope::logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallStack> callStack)
{
WorkerGlobalScope::logExceptionToConsole(errorMessage, scriptId, sourceURL, lineNumber, columnNumber, callStack);

Powered by Google App Engine
This is Rietveld 408576698