api_binding_hooks_delegate.cc 884 B

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