chromium/out/Default/gen/chrome/common/extensions/api/settings_private.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
//   chrome/common/extensions/api/settings_private.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#ifndef CHROME_COMMON_EXTENSIONS_API_SETTINGS_PRIVATE_H__
#define CHROME_COMMON_EXTENSIONS_API_SETTINGS_PRIVATE_H__

#include <stdint.h>

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

#include "base/values.h"
#include <string_view>


namespace extensions {
namespace api {
namespace settings_private {

//
// Types
//

enum class PrefType {};


const char* ToString(PrefType as_enum);
PrefType ParsePrefType(std::string_view as_string);
std::u16string GetPrefTypeParseError(std::string_view as_string);

enum class ControlledBy {};


const char* ToString(ControlledBy as_enum);
ControlledBy ParseControlledBy(std::string_view as_string);
std::u16string GetControlledByParseError(std::string_view as_string);

enum class Enforcement {};


const char* ToString(Enforcement as_enum);
Enforcement ParseEnforcement(std::string_view as_string);
std::u16string GetEnforcementParseError(std::string_view as_string);

struct PrefObject {};


//
// Functions
//

namespace SetPref {

struct Params {};

namespace Results {

base::Value::List Create(bool success);
}  // namespace Results

}  // namespace SetPref

namespace GetAllPrefs {

namespace Results {

base::Value::List Create(const std::vector<PrefObject>& prefs);
}  // namespace Results

}  // namespace GetAllPrefs

namespace GetPref {

struct Params {};

namespace Results {

base::Value::List Create(const PrefObject& pref);
}  // namespace Results

}  // namespace GetPref

namespace GetDefaultZoom {

namespace Results {

base::Value::List Create(double zoom);
}  // namespace Results

}  // namespace GetDefaultZoom

namespace SetDefaultZoom {

struct Params {};

namespace Results {

base::Value::List Create(bool success);
}  // namespace Results

}  // namespace SetDefaultZoom

//
// Events
//

namespace OnPrefsChanged {

extern const char kEventName[];  // "settingsPrivate.onPrefsChanged"

base::Value::List Create(const std::vector<PrefObject>& prefs);
}  // namespace OnPrefsChanged

}  // namespace settings_private
}  // namespace api
}  // namespace extensions

#endif  // CHROME_COMMON_EXTENSIONS_API_SETTINGS_PRIVATE_H__