blob: 1e55079d7a274bf182f107d429ad5a762936da5e [file] [log] [blame] [edit]
// Copyright (c) 2012 The Chromium 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 CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_
#define CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_
#include "base/compiler_specific.h"
#include "chrome/renderer/extensions/chrome_v8_extension.h"
#include "v8/include/v8.h"
class ExtensionDispatcher;
class ChromeV8Context;
namespace extensions {
// The native component of custom bindings for the chrome.runtime API.
class RuntimeCustomBindings : public ChromeV8Extension {
public:
explicit RuntimeCustomBindings(ChromeV8Context* context);
virtual ~RuntimeCustomBindings();
private:
v8::Handle<v8::Value> GetManifest(const v8::Arguments& args);
ChromeV8Context* context_;
};
} // extensions
#endif // CHROME_RENDERER_EXTENSIONS_RUNTIME_CUSTOM_BINDINGS_H_