blob: 7b8f077617574b538285608d7e411958d42177dd [file] [log] [blame]
[email protected]e6893672014-05-01 17:29:131// Copyright 2014 The Chromium Authors. All rights reserved.
[email protected]120028b9c2012-07-03 01:32:242// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]e6893672014-05-01 17:29:135#ifndef EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_
6#define EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_
[email protected]120028b9c2012-07-03 01:32:247
8#include "base/compiler_specific.h"
[email protected]bcd9580f2014-04-17 19:17:599#include "extensions/renderer/object_backed_native_handler.h"
[email protected]120028b9c2012-07-03 01:32:2410#include "v8/include/v8.h"
11
[email protected]120028b9c2012-07-03 01:32:2412namespace extensions {
13
14// The native component of custom bindings for the chrome.runtime API.
[email protected]bcd9580f2014-04-17 19:17:5915class RuntimeCustomBindings : public ObjectBackedNativeHandler {
[email protected]120028b9c2012-07-03 01:32:2416 public:
[email protected]bcd9580f2014-04-17 19:17:5917 explicit RuntimeCustomBindings(ScriptContext* context);
[email protected]120028b9c2012-07-03 01:32:2418
dcheng9168b2f2014-10-21 12:38:2419 ~RuntimeCustomBindings() override;
[email protected]120028b9c2012-07-03 01:32:2420
[email protected]120028b9c2012-07-03 01:32:2421 private:
[email protected]d8c5fbb2013-06-14 11:35:2522 void GetManifest(const v8::FunctionCallbackInfo<v8::Value>& args);
[email protected]c1e5fb12013-11-13 03:40:3123 void GetExtensionViews(const v8::FunctionCallbackInfo<v8::Value>& args);
[email protected]120028b9c2012-07-03 01:32:2424};
25
[email protected]d8c5fbb2013-06-14 11:35:2526} // namespace extensions
[email protected]120028b9c2012-07-03 01:32:2427
[email protected]e6893672014-05-01 17:29:1328#endif // EXTENSIONS_RENDERER_RUNTIME_CUSTOM_BINDINGS_H_