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

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

Issue 932773002: Support V8 code caching for imported scripts in ServiceWorker (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use 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
« no previous file with comments | « no previous file | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerGlobalScope.h
diff --git a/Source/core/workers/WorkerGlobalScope.h b/Source/core/workers/WorkerGlobalScope.h
index 072d3f198831c692bd877a051b90dfa30c69a95f..b21f75a342486c2e5a7123787665c87d717ce8b6 100644
--- a/Source/core/workers/WorkerGlobalScope.h
+++ b/Source/core/workers/WorkerGlobalScope.h
@@ -27,6 +27,7 @@
#ifndef WorkerGlobalScope_h
#define WorkerGlobalScope_h
+#include "bindings/core/v8/V8CacheOptions.h"
#include "bindings/core/v8/WorkerScriptController.h"
#include "core/dom/ExecutionContext.h"
#include "core/events/EventListener.h"
@@ -141,6 +142,7 @@ protected:
virtual void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallStack>) override;
void addMessageToWorkerConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>);
+ void setV8CacheOptions(V8CacheOptions v8CacheOptions) { m_v8CacheOptions = v8CacheOptions; }
private:
#if !ENABLE(OILPAN)
@@ -158,6 +160,7 @@ private:
KURL m_url;
String m_userAgent;
+ V8CacheOptions m_v8CacheOptions;
mutable RefPtrWillBeMember<WorkerConsole> m_console;
mutable RefPtrWillBeMember<WorkerLocation> m_location;
« no previous file with comments | « no previous file | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698