#include "base/bind.h"
#include "content/public/renderer/render_view.h"
#include "extensions/common/extension_messages.h"
-#include "grit/renderer_resources.h"
+#include "extensions/renderer/script_context.h"
#include "v8/include/v8.h"
namespace extensions {
-TabsCustomBindings::TabsCustomBindings(Dispatcher* dispatcher,
- ChromeV8Context* context)
- : ChromeV8Extension(dispatcher, context) {
+TabsCustomBindings::TabsCustomBindings(ScriptContext* context)
+ : ObjectBackedNativeHandler(context) {
RouteFunction("OpenChannelToTab",
base::Bind(&TabsCustomBindings::OpenChannelToTab,
base::Unretained(this)));
const v8::FunctionCallbackInfo<v8::Value>& args) {
// Get the current RenderView so that we can send a routed IPC message from
// the correct source.
- content::RenderView* renderview = GetRenderView();
+ content::RenderView* renderview = context()->GetRenderView();
if (!renderview)
return;