[email protected] | e689367 | 2014-05-01 17:29:13 | [diff] [blame] | 1 | // Copyright 2014 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_V8_CONTEXT_NATIVE_HANDLER_H_ | ||||
6 | #define EXTENSIONS_RENDERER_V8_CONTEXT_NATIVE_HANDLER_H_ | ||||
7 | |||||
8 | #include "extensions/renderer/object_backed_native_handler.h" | ||||
9 | |||||
10 | namespace extensions { | ||||
11 | |||||
[email protected] | e689367 | 2014-05-01 17:29:13 | [diff] [blame] | 12 | class V8ContextNativeHandler : public ObjectBackedNativeHandler { |
13 | public: | ||||
rdevlin.cronin | a794ae4 | 2016-04-15 18:05:11 | [diff] [blame] | 14 | explicit V8ContextNativeHandler(ScriptContext* context); |
[email protected] | e689367 | 2014-05-01 17:29:13 | [diff] [blame] | 15 | |
Devlin Cronin | d9ea834 | 2018-01-27 06:00:04 | [diff] [blame] | 16 | // ObjectBackedNativeHandler: |
17 | void AddRoutes() override; | ||||
18 | |||||
[email protected] | e689367 | 2014-05-01 17:29:13 | [diff] [blame] | 19 | private: |
20 | void GetAvailability(const v8::FunctionCallbackInfo<v8::Value>& args); | ||||
21 | void GetModuleSystem(const v8::FunctionCallbackInfo<v8::Value>& args); | ||||
22 | |||||
[email protected] | e689367 | 2014-05-01 17:29:13 | [diff] [blame] | 23 | ScriptContext* context_; |
[email protected] | e689367 | 2014-05-01 17:29:13 | [diff] [blame] | 24 | }; |
25 | |||||
26 | } // namespace extensions | ||||
27 | |||||
28 | #endif // EXTENSIONS_RENDERER_V8_CONTEXT_NATIVE_HANDLER_H_ |