// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_H_ #define EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_H_ #include <memory> #include <string> #include "base/memory/raw_ptr.h" #include "base/memory/weak_ptr.h" #include "extensions/renderer/bindings/api_binding_types.h" #include "v8/include/v8.h" namespace gin { class Arguments; } // namespace gin namespace extensions { class APIBindingHooksDelegate; class APITypeReferenceMap; class APISignature; class APIRequestHandler; // A class to register custom hooks for given API calls that need different // handling. An instance exists for a single API, but can be used across // multiple contexts (but only on the same thread). // TODO(devlin): We have both C++ and JS custom bindings, but this only allows // for registration of C++ handlers. Add JS support. class APIBindingHooks { … }; } // namespace extensions #endif // EXTENSIONS_RENDERER_BINDINGS_API_BINDING_HOOKS_H_