blob: 88e5d23984576f7e500fad70808c2d2b279112a3 [file] [log] [blame]
kalman12033f122015-08-21 19:30:131// Copyright 2015 The Chromium 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 EXTENSIONS_RENDERER_TEST_NATIVE_HANDLER_H_
6#define EXTENSIONS_RENDERER_TEST_NATIVE_HANDLER_H_
7
8#include "base/compiler_specific.h"
avi2d124c02015-12-23 06:36:429#include "base/macros.h"
kalman12033f122015-08-21 19:30:1310#include "extensions/renderer/object_backed_native_handler.h"
11#include "v8/include/v8.h"
12
13namespace extensions {
14class ScriptContext;
15
16// NativeHandler for the chrome.test API.
17class TestNativeHandler : public ObjectBackedNativeHandler {
18 public:
19 explicit TestNativeHandler(ScriptContext* context);
20
21 private:
22 void GetWakeEventPage(const v8::FunctionCallbackInfo<v8::Value>& args);
23
24 DISALLOW_COPY_AND_ASSIGN(TestNativeHandler);
25};
26
27} // namespace extensions
28
29#endif // EXTENSIONS_RENDERER_TEST_NATIVE_HANDLER_H_