// Copyright 2018 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_RESPONSE_VALIDATOR_H_ #define EXTENSIONS_RENDERER_BINDINGS_API_RESPONSE_VALIDATOR_H_ #include <set> #include <string> #include "base/functional/callback.h" #include "base/memory/raw_ptr.h" #include "v8/include/v8.h" namespace extensions { class APITypeReferenceMap; // A class to validate the responses to API calls sent by the browser. This // helps ensure that the browser returns values that match the expected schema // (which corresponds to the public documentation). // TODO(devlin): This is now used for both API method responses and event // arguments. Rename to APISignatureValidator? class APIResponseValidator { … }; } // namespace extensions #endif // EXTENSIONS_RENDERER_BINDINGS_API_RESPONSE_VALIDATOR_H_