| Index: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h
|
| index 9a516e85981669d1d7be8ad3b2b2f8de942ffc8d..12fbebb1679c4e082396bf19bc8e96c954389985 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h
|
| @@ -53,35 +53,32 @@ class CORE_EXPORT V8ScriptRunner final {
|
| public:
|
| // For the following methods, the caller sites have to hold
|
| // a HandleScope and a ContextScope.
|
| - static v8::MaybeLocal<v8::Script> compileScript(
|
| - const ScriptSourceCode&,
|
| - v8::Isolate*,
|
| - AccessControlStatus = SharableCrossOrigin,
|
| - V8CacheOptions = V8CacheOptionsDefault);
|
| - static v8::MaybeLocal<v8::Script> compileScript(
|
| - const String&,
|
| - const String& fileName,
|
| - const String& sourceMapUrl,
|
| - const TextPosition&,
|
| - v8::Isolate*,
|
| - CachedMetadataHandler* = nullptr,
|
| - AccessControlStatus = SharableCrossOrigin,
|
| - V8CacheOptions = V8CacheOptionsDefault);
|
| + static v8::MaybeLocal<v8::Script> compileScript(const ScriptSourceCode&,
|
| + v8::Isolate*,
|
| + AccessControlStatus,
|
| + V8CacheOptions);
|
| + static v8::MaybeLocal<v8::Script> compileScript(const String&,
|
| + const String& fileName,
|
| + const String& sourceMapUrl,
|
| + const TextPosition&,
|
| + v8::Isolate*,
|
| + CachedMetadataHandler*,
|
| + AccessControlStatus,
|
| + V8CacheOptions);
|
| // CachedMetadataHandler is set when metadata caching is supported. For
|
| // normal scripe resources, CachedMetadataHandler is from ScriptResource.
|
| // For worker script, ScriptResource is null but CachedMetadataHandler may be
|
| // set. When ScriptStreamer is set, ScriptResource must be set.
|
| - static v8::MaybeLocal<v8::Script> compileScript(
|
| - v8::Local<v8::String>,
|
| - const String& fileName,
|
| - const String& sourceMapUrl,
|
| - const TextPosition&,
|
| - v8::Isolate*,
|
| - ScriptResource* = nullptr,
|
| - ScriptStreamer* = nullptr,
|
| - CachedMetadataHandler* = nullptr,
|
| - AccessControlStatus = SharableCrossOrigin,
|
| - V8CacheOptions = V8CacheOptionsDefault);
|
| + static v8::MaybeLocal<v8::Script> compileScript(v8::Local<v8::String>,
|
| + const String& fileName,
|
| + const String& sourceMapUrl,
|
| + const TextPosition&,
|
| + v8::Isolate*,
|
| + ScriptResource*,
|
| + ScriptStreamer*,
|
| + CachedMetadataHandler*,
|
| + AccessControlStatus,
|
| + V8CacheOptions);
|
| static v8::MaybeLocal<v8::Module> compileModule(v8::Isolate*,
|
| const String& source,
|
| const String& fileName);
|
|
|