#include "chrome/common/extensions/api/pdf_viewer_private.h"
#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "tools/json_schema_compiler/util.h"
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace pdf_viewer_private {
StreamInfo::StreamInfo()
: … { … }
StreamInfo::~StreamInfo() = default;
StreamInfo::StreamInfo(StreamInfo&& rhs) noexcept = default;
StreamInfo& StreamInfo::operator=(StreamInfo&& rhs) noexcept = default;
StreamInfo StreamInfo::Clone() const { … }
bool StreamInfo::Populate(
const base::Value::Dict& dict, StreamInfo& out) { … }
bool StreamInfo::Populate(
const base::Value& value, StreamInfo& out) { … }
std::optional<StreamInfo> StreamInfo::FromValue(const base::Value::Dict& value) { … }
std::optional<StreamInfo> StreamInfo::FromValue(const base::Value& value) { … }
base::Value::Dict StreamInfo::ToValue() const { … }
PdfPluginAttributes::PdfPluginAttributes()
: … { … }
PdfPluginAttributes::~PdfPluginAttributes() = default;
PdfPluginAttributes::PdfPluginAttributes(PdfPluginAttributes&& rhs) noexcept = default;
PdfPluginAttributes& PdfPluginAttributes::operator=(PdfPluginAttributes&& rhs) noexcept = default;
PdfPluginAttributes PdfPluginAttributes::Clone() const { … }
bool PdfPluginAttributes::Populate(
const base::Value::Dict& dict, PdfPluginAttributes& out) { … }
bool PdfPluginAttributes::Populate(
const base::Value& value, PdfPluginAttributes& out) { … }
std::optional<PdfPluginAttributes> PdfPluginAttributes::FromValue(const base::Value::Dict& value) { … }
std::optional<PdfPluginAttributes> PdfPluginAttributes::FromValue(const base::Value& value) { … }
base::Value::Dict PdfPluginAttributes::ToValue() const { … }
namespace GetStreamInfo {
base::Value::List Results::Create(const StreamInfo& stream_info) { … }
}
namespace IsAllowedLocalFileAccess {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create(bool result) { … }
}
namespace SetPdfDocumentTitle {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
namespace SetPdfPluginAttributes {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create() { … }
}
namespace OnSave {
const char kEventName[] = …;
base::Value::List Create(const std::string& stream_url) { … }
}
}
}
}