| OLD | NEW |
| 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 23 matching lines...) Expand all Loading... |
| 34 #include "core/fetch/AccessControlStatus.h" | 34 #include "core/fetch/AccessControlStatus.h" |
| 35 #include "wtf/Allocator.h" | 35 #include "wtf/Allocator.h" |
| 36 #include "wtf/text/TextPosition.h" | 36 #include "wtf/text/TextPosition.h" |
| 37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
| 38 #include <stdint.h> | 38 #include <stdint.h> |
| 39 #include <v8.h> | 39 #include <v8.h> |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class CachedMetadataHandler; | 43 class CachedMetadataHandler; |
| 44 class Resource; | |
| 45 class ScriptResource; | 44 class ScriptResource; |
| 46 class ScriptSourceCode; | 45 class ScriptSourceCode; |
| 47 class ExecutionContext; | 46 class ExecutionContext; |
| 48 class ScriptStreamer; | 47 class ScriptStreamer; |
| 49 | 48 |
| 50 class CORE_EXPORT V8ScriptRunner final { | 49 class CORE_EXPORT V8ScriptRunner final { |
| 51 STATIC_ONLY(V8ScriptRunner); | 50 STATIC_ONLY(V8ScriptRunner); |
| 52 | 51 |
| 53 public: | 52 public: |
| 54 // For the following methods, the caller sites have to hold | 53 // For the following methods, the caller sites have to hold |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 return v8::MaybeLocal<v8::Value>(); | 164 return v8::MaybeLocal<v8::Value>(); |
| 166 v8::Local<v8::Function> function = functionValue.As<v8::Function>(); | 165 v8::Local<v8::Function> function = functionValue.As<v8::Function>(); |
| 167 return V8ScriptRunner::callInternalFunction(function, undefined, numArgs, | 166 return V8ScriptRunner::callInternalFunction(function, undefined, numArgs, |
| 168 args, isolate); | 167 args, isolate); |
| 169 } | 168 } |
| 170 }; | 169 }; |
| 171 | 170 |
| 172 } // namespace blink | 171 } // namespace blink |
| 173 | 172 |
| 174 #endif // V8ScriptRunner_h | 173 #endif // V8ScriptRunner_h |
| OLD | NEW |