[email protected] | e689367 | 2014-05-01 17:29:13 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
[email protected] | 120028b9c | 2012-07-03 01:32:24 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | e689367 | 2014-05-01 17:29:13 | [diff] [blame] | 5 | #ifndef EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_ |
6 | #define EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_ | ||||
[email protected] | 120028b9c | 2012-07-03 01:32:24 | [diff] [blame] | 7 | |
8 | #include "base/compiler_specific.h" | ||||
[email protected] | bcd9580f | 2014-04-17 19:17:59 | [diff] [blame] | 9 | #include "extensions/renderer/object_backed_native_handler.h" |
[email protected] | 120028b9c | 2012-07-03 01:32:24 | [diff] [blame] | 10 | #include "v8/include/v8.h" |
11 | |||||
[email protected] | 120028b9c | 2012-07-03 01:32:24 | [diff] [blame] | 12 | namespace extensions { |
13 | |||||
14 | // The native component of custom bindings for the chrome.runtime API. | ||||
[email protected] | bcd9580f | 2014-04-17 19:17:59 | [diff] [blame] | 15 | class RuntimeCustomBindings : public ObjectBackedNativeHandler { |
[email protected] | 120028b9c | 2012-07-03 01:32:24 | [diff] [blame] | 16 | public: |
[email protected] | bcd9580f | 2014-04-17 19:17:59 | [diff] [blame] | 17 | explicit RuntimeCustomBindings(ScriptContext* context); |
[email protected] | 120028b9c | 2012-07-03 01:32:24 | [diff] [blame] | 18 | |
dcheng | 9168b2f | 2014-10-21 12:38:24 | [diff] [blame] | 19 | ~RuntimeCustomBindings() override; |
[email protected] | 120028b9c | 2012-07-03 01:32:24 | [diff] [blame] | 20 | |
[email protected] | 120028b9c | 2012-07-03 01:32:24 | [diff] [blame] | 21 | private: |
[email protected] | d8c5fbb | 2013-06-14 11:35:25 | [diff] [blame] | 22 | void GetManifest(const v8::FunctionCallbackInfo<v8::Value>& args); |
[email protected] | c1e5fb1 | 2013-11-13 03:40:31 | [diff] [blame] | 23 | void GetExtensionViews(const v8::FunctionCallbackInfo<v8::Value>& args); |
[email protected] | 120028b9c | 2012-07-03 01:32:24 | [diff] [blame] | 24 | }; |
25 | |||||
[email protected] | d8c5fbb | 2013-06-14 11:35:25 | [diff] [blame] | 26 | } // namespace extensions |
[email protected] | 120028b9c | 2012-07-03 01:32:24 | [diff] [blame] | 27 | |
[email protected] | e689367 | 2014-05-01 17:29:13 | [diff] [blame] | 28 | #endif // EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_ |