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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h

Issue 2774843002: Pass AccessControlStatus to compileModule() (Closed)
Patch Set: const Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const String& sourceMapUrl, 74 const String& sourceMapUrl,
75 const TextPosition&, 75 const TextPosition&,
76 v8::Isolate*, 76 v8::Isolate*,
77 ScriptResource*, 77 ScriptResource*,
78 ScriptStreamer*, 78 ScriptStreamer*,
79 CachedMetadataHandler*, 79 CachedMetadataHandler*,
80 AccessControlStatus, 80 AccessControlStatus,
81 V8CacheOptions); 81 V8CacheOptions);
82 static v8::MaybeLocal<v8::Module> compileModule(v8::Isolate*, 82 static v8::MaybeLocal<v8::Module> compileModule(v8::Isolate*,
83 const String& source, 83 const String& source,
84 const String& fileName); 84 const String& fileName,
85 AccessControlStatus);
85 static v8::MaybeLocal<v8::Value> runCompiledScript(v8::Isolate*, 86 static v8::MaybeLocal<v8::Value> runCompiledScript(v8::Isolate*,
86 v8::Local<v8::Script>, 87 v8::Local<v8::Script>,
87 ExecutionContext*); 88 ExecutionContext*);
88 static v8::MaybeLocal<v8::Value> compileAndRunInternalScript( 89 static v8::MaybeLocal<v8::Value> compileAndRunInternalScript(
89 v8::Local<v8::String>, 90 v8::Local<v8::String>,
90 v8::Isolate*, 91 v8::Isolate*,
91 const String& = String(), 92 const String& = String(),
92 const TextPosition& = TextPosition()); 93 const TextPosition& = TextPosition());
93 static v8::MaybeLocal<v8::Value> runCompiledInternalScript( 94 static v8::MaybeLocal<v8::Value> runCompiledInternalScript(
94 v8::Isolate*, 95 v8::Isolate*,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 return v8::MaybeLocal<v8::Value>(); 155 return v8::MaybeLocal<v8::Value>();
155 v8::Local<v8::Function> function = functionValue.As<v8::Function>(); 156 v8::Local<v8::Function> function = functionValue.As<v8::Function>();
156 return V8ScriptRunner::callInternalFunction(function, undefined, numArgs, 157 return V8ScriptRunner::callInternalFunction(function, undefined, numArgs,
157 args, isolate); 158 args, isolate);
158 } 159 }
159 }; 160 };
160 161
161 } // namespace blink 162 } // namespace blink
162 163
163 #endif // V8ScriptRunner_h 164 #endif // V8ScriptRunner_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698