#ifndef EXTENSIONS_COMMON_API_USER_SCRIPTS_H__
#define EXTENSIONS_COMMON_API_USER_SCRIPTS_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 user_scripts {
enum class ExecutionWorld { … };
const char* ToString(ExecutionWorld as_enum);
ExecutionWorld ParseExecutionWorld(std::string_view as_string);
std::u16string GetExecutionWorldParseError(std::string_view as_string);
struct ScriptSource { … };
struct RegisteredUserScript { … };
struct UserScriptFilter { … };
struct WorldProperties { … };
namespace Register {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace GetScripts {
struct Params { … };
namespace Results {
base::Value::List Create(const std::vector<RegisteredUserScript>& scripts);
}
}
namespace Unregister {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace Update {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace ConfigureWorld {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
namespace GetWorldConfigurations {
namespace Results {
base::Value::List Create(const std::vector<WorldProperties>& worlds);
}
}
namespace ResetWorldConfiguration {
struct Params { … };
namespace Results {
base::Value::List Create();
}
}
}
}
}
#endif