1 // Copyright 2017 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 #include "extensions/renderer/bindings/api_binding_hooks_delegate.h"
6
7 namespace extensions {
8
~APIBindingHooksDelegate()9 APIBindingHooksDelegate::~APIBindingHooksDelegate() {}
10
CreateCustomEvent(v8::Local<v8::Context> context,const std::string & event_name,v8::Local<v8::Value> * event_out)11 bool APIBindingHooksDelegate::CreateCustomEvent(
12 v8::Local<v8::Context> context,
13 const std::string& event_name,
14 v8::Local<v8::Value>* event_out) {
15 return false;
16 }
17
HandleRequest(const std::string & method_name,const APISignature * signature,v8::Local<v8::Context> context,std::vector<v8::Local<v8::Value>> * arguments,const APITypeReferenceMap & refs)18 APIBindingHooks::RequestResult APIBindingHooksDelegate::HandleRequest(
19 const std::string& method_name,
20 const APISignature* signature,
21 v8::Local<v8::Context> context,
22 std::vector<v8::Local<v8::Value>>* arguments,
23 const APITypeReferenceMap& refs) {
24 return APIBindingHooks::RequestResult(
25 APIBindingHooks::RequestResult::NOT_HANDLED);
26 }
27
28 } // namespace extensions
29