| Index: test/inspector-protocol/set-timeout-extension.h
|
| diff --git a/test/inspector-protocol/set-timeout-extension.h b/test/inspector-protocol/set-timeout-extension.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d7f0bbd5f2098df551871de0f7807f6889480c05
|
| --- /dev/null
|
| +++ b/test/inspector-protocol/set-timeout-extension.h
|
| @@ -0,0 +1,29 @@
|
| +// 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_SET_TIMEOUT_EXTENSION_H_
|
| +#define V8_TEST_INSPECTOR_PROTOCOL_SET_TIMEOUT_EXTENSION_H_
|
| +
|
| +#include "include/v8.h"
|
| +
|
| +namespace v8_inspector {
|
| +
|
| +class V8Inspector;
|
| +
|
| +class SetTimeoutExtension : public v8::Extension {
|
| + public:
|
| + SetTimeoutExtension()
|
| + : v8::Extension("v8_inspector/setTimeout",
|
| + "native function setTimeout();") {}
|
| +
|
| + virtual v8::Local<v8::FunctionTemplate> GetNativeFunctionTemplate(
|
| + v8::Isolate* isolate, v8::Local<v8::String> name);
|
| +
|
| + private:
|
| + static void SetTimeout(const v8::FunctionCallbackInfo<v8::Value>& args);
|
| +};
|
| +
|
| +} // namespace v8_inspector
|
| +
|
| +#endif // V8_TEST_INSPECTOR_PROTOCOL_SET_TIMEOUT_EXTENSION_H_
|
|
|