Chromium Code Reviews| Index: Source/bindings/core/v8/V8ScriptRunner.h |
| diff --git a/Source/bindings/core/v8/V8ScriptRunner.h b/Source/bindings/core/v8/V8ScriptRunner.h |
| index 72d061edeec82c0ffe63eac27c6a7d83b8d9eeef..57e5cb3bdda80d7ee56350ec04a331857c5b9f92 100644 |
| --- a/Source/bindings/core/v8/V8ScriptRunner.h |
| +++ b/Source/bindings/core/v8/V8ScriptRunner.h |
| @@ -35,6 +35,7 @@ |
| namespace blink { |
| +class CachedMetadataHandler; |
| class Resource; |
| class ScriptResource; |
| class ScriptSourceCode; |
| @@ -46,7 +47,7 @@ public: |
| // For the following methods, the caller sites have to hold |
| // a HandleScope and a ContextScope. |
| static v8::Local<v8::Script> compileScript(const ScriptSourceCode&, v8::Isolate*, AccessControlStatus = SharableCrossOrigin, V8CacheOptions = V8CacheOptionsDefault); |
| - static v8::Local<v8::Script> compileScript(v8::Handle<v8::String>, const String& fileName, const TextPosition&, ScriptResource*, ScriptStreamer*, v8::Isolate*, AccessControlStatus = SharableCrossOrigin, V8CacheOptions = V8CacheOptionsDefault, bool isInternalScript = false); |
| + static v8::Local<v8::Script> compileScript(v8::Handle<v8::String>, const String& fileName, const TextPosition&, v8::Isolate*, ScriptResource* = nullptr, ScriptStreamer* = nullptr, CachedMetadataHandler* = nullptr, AccessControlStatus = SharableCrossOrigin, V8CacheOptions = V8CacheOptionsDefault, bool isInternalScript = false); |
|
marja
2015/02/17 11:31:58
I was confused here why we need both Resource and
horo
2015/02/17 12:53:42
Done.
|
| static v8::Local<v8::Value> runCompiledScript(v8::Isolate*, v8::Handle<v8::Script>, ExecutionContext*); |
| static v8::Local<v8::Value> compileAndRunInternalScript(v8::Handle<v8::String>, v8::Isolate*, const String& = String(), const TextPosition& = TextPosition()); |
| static v8::Local<v8::Value> runCompiledInternalScript(v8::Isolate*, v8::Handle<v8::Script>); |
| @@ -57,8 +58,8 @@ public: |
| static v8::Local<v8::Object> instantiateObject(v8::Isolate*, v8::Handle<v8::Function>, int argc = 0, v8::Handle<v8::Value> argv[] = 0); |
| static v8::Local<v8::Object> instantiateObjectInDocument(v8::Isolate*, v8::Handle<v8::Function>, ExecutionContext*, int argc = 0, v8::Handle<v8::Value> argv[] = 0); |
| - static unsigned tagForParserCache(Resource*); |
| - static unsigned tagForCodeCache(Resource*); |
| + static unsigned tagForParserCache(CachedMetadataHandler*); |
| + static unsigned tagForCodeCache(CachedMetadataHandler*); |
| }; |
| } // namespace blink |