Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef V8_TEST_INSPECTOR_PROTOCOL_LOAD_EXTENSION_H_ | |
| 6 #define V8_TEST_INSPECTOR_PROTOCOL_LOAD_EXTENSION_H_ | |
| 7 | |
| 8 #include "include/v8.h" | |
| 9 | |
| 10 namespace v8_inspector { | |
| 11 | |
| 12 class V8Inspector; | |
| 13 | |
| 14 class LoadExtension : public v8::Extension { | |
|
dgozman
2016/09/22 17:44:49
Looks like this is only used in the runner? Why no
| |
| 15 public: | |
| 16 LoadExtension() | |
| 17 : v8::Extension("v8_inspector/load", "native function load();") {} | |
| 18 | |
| 19 virtual v8::Local<v8::FunctionTemplate> GetNativeFunctionTemplate( | |
| 20 v8::Isolate* isolate, v8::Local<v8::String> name); | |
| 21 | |
| 22 private: | |
| 23 static void Load(const v8::FunctionCallbackInfo<v8::Value>& args); | |
| 24 }; | |
| 25 | |
| 26 } // namespace v8_inspector | |
| 27 | |
| 28 #endif // V8_TEST_INSPECTOR_PROTOCOL_LOAD_EXTENSION_H_ | |
| OLD | NEW |