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

#ifndef CHROME_COMMON_EXTENSIONS_API_READING_LIST_H__
#define CHROME_COMMON_EXTENSIONS_API_READING_LIST_H__

#include <stdint.h>

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

#include "base/values.h"

namespace extensions {
namespace api {
namespace reading_list {

//
// Types
//

struct ReadingListEntry {};

struct AddEntryOptions {};

struct RemoveOptions {};

struct UpdateEntryOptions {};

struct QueryInfo {};


//
// Functions
//

namespace AddEntry {

struct Params {};

namespace Results {

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

}  // namespace AddEntry

namespace RemoveEntry {

struct Params {};

namespace Results {

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

}  // namespace RemoveEntry

namespace UpdateEntry {

struct Params {};

namespace Results {

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

}  // namespace UpdateEntry

namespace Query {

struct Params {};

namespace Results {

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

}  // namespace Query

//
// Events
//

namespace OnEntryAdded {

extern const char kEventName[];  // "readingList.onEntryAdded"

// The entry that was added.
base::Value::List Create(const ReadingListEntry& entry);
}  // namespace OnEntryAdded

namespace OnEntryRemoved {

extern const char kEventName[];  // "readingList.onEntryRemoved"

// The entry that was removed.
base::Value::List Create(const ReadingListEntry& entry);
}  // namespace OnEntryRemoved

namespace OnEntryUpdated {

extern const char kEventName[];  // "readingList.onEntryUpdated"

// The entry that was updated.
base::Value::List Create(const ReadingListEntry& entry);
}  // namespace OnEntryUpdated

}  // namespace reading_list
}  // namespace api
}  // namespace extensions

#endif  // CHROME_COMMON_EXTENSIONS_API_READING_LIST_H__