Chromium Code Reviews| Index: test/inspector-protocol/load-extension.h |
| diff --git a/test/inspector-protocol/load-extension.h b/test/inspector-protocol/load-extension.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ceb5a20a45327c02c13d06434a5d8c20dc8e5099 |
| --- /dev/null |
| +++ b/test/inspector-protocol/load-extension.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2016 the V8 project authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef V8_TEST_INSPECTOR_PROTOCOL_LOAD_EXTENSION_H_ |
| +#define V8_TEST_INSPECTOR_PROTOCOL_LOAD_EXTENSION_H_ |
| + |
| +#include "include/v8.h" |
| + |
| +namespace v8_inspector { |
| + |
| +class V8Inspector; |
| + |
| +class LoadExtension : public v8::Extension { |
|
dgozman
2016/09/22 17:44:49
Looks like this is only used in the runner? Why no
|
| + public: |
| + LoadExtension() |
| + : v8::Extension("v8_inspector/load", "native function load();") {} |
| + |
| + virtual v8::Local<v8::FunctionTemplate> GetNativeFunctionTemplate( |
| + v8::Isolate* isolate, v8::Local<v8::String> name); |
| + |
| + private: |
| + static void Load(const v8::FunctionCallbackInfo<v8::Value>& args); |
| +}; |
| + |
| +} // namespace v8_inspector |
| + |
| +#endif // V8_TEST_INSPECTOR_PROTOCOL_LOAD_EXTENSION_H_ |