// Copyright 2017 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_LAST_ERROR_H_ #define EXTENSIONS_RENDERER_BINDINGS_API_LAST_ERROR_H_ #include <optional> #include <string> #include "base/functional/callback.h" #include "extensions/renderer/bindings/api_binding_types.h" #include "v8/include/v8.h" namespace extensions { // Handles creating and clearing a 'lastError' property to hold the last error // set by an extension API function. class APILastError { … }; } // namespace extensions #endif // EXTENSIONS_RENDERER_BINDINGS_API_LAST_ERROR_H_