chromium/out/Default/gen/extensions/common/api/scripts_internal.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// GENERATED FROM THE API DEFINITION IN
//   extensions/common/api/scripts_internal.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#ifndef EXTENSIONS_COMMON_API_SCRIPTS_INTERNAL_H__
#define EXTENSIONS_COMMON_API_SCRIPTS_INTERNAL_H__

#include <stdint.h>

#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>

#include "base/values.h"
#include <string_view>
#include "extensions/common/api/extension_types.h"


namespace extensions {
namespace api {
namespace scripts_internal {

//
// Types
//

// The source of the user script. This will also determine certain capabilities
// of the script (such as whether it can use globs, raw strings for code, etc).
enum class Source {};


const char* ToString(Source as_enum);
Source ParseSource(std::string_view as_string);
std::u16string GetSourceParseError(std::string_view as_string);

struct ScriptSource {};

struct SerializedUserScript {};


}  // namespace scripts_internal
}  // namespace api
}  // namespace extensions

#endif  // EXTENSIONS_COMMON_API_SCRIPTS_INTERNAL_H__