blob: 39c348789996845c1262e532f8428f7376c124a2 [file] [log] [blame]
// chromeos/crosapi/mojom/vpn_service.mojom-params-data.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_CROSAPI_MOJOM_VPN_SERVICE_MOJOM_PARAMS_DATA_H_
#define CHROMEOS_CROSAPI_MOJOM_VPN_SERVICE_MOJOM_PARAMS_DATA_H_
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/buffer.h"
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
namespace crosapi {
namespace mojom {
namespace internal {
class ValidationContext;
class PepperVpnProxyObserver_OnUnbind_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
private:
friend class mojo::internal::MessageFragment<PepperVpnProxyObserver_OnUnbind_Params_Data>;
PepperVpnProxyObserver_OnUnbind_Params_Data();
~PepperVpnProxyObserver_OnUnbind_Params_Data() = delete;
};
static_assert(sizeof(PepperVpnProxyObserver_OnUnbind_Params_Data) == 8,
"Bad sizeof(PepperVpnProxyObserver_OnUnbind_Params_Data)");
class PepperVpnProxyObserver_OnPacketReceived_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::Array_Data<uint8_t>> data;
private:
friend class mojo::internal::MessageFragment<PepperVpnProxyObserver_OnPacketReceived_Params_Data>;
PepperVpnProxyObserver_OnPacketReceived_Params_Data();
~PepperVpnProxyObserver_OnPacketReceived_Params_Data() = delete;
};
static_assert(sizeof(PepperVpnProxyObserver_OnPacketReceived_Params_Data) == 16,
"Bad sizeof(PepperVpnProxyObserver_OnPacketReceived_Params_Data)");
class EventObserverForExtension_OnAddDialog_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
private:
friend class mojo::internal::MessageFragment<EventObserverForExtension_OnAddDialog_Params_Data>;
EventObserverForExtension_OnAddDialog_Params_Data();
~EventObserverForExtension_OnAddDialog_Params_Data() = delete;
};
static_assert(sizeof(EventObserverForExtension_OnAddDialog_Params_Data) == 8,
"Bad sizeof(EventObserverForExtension_OnAddDialog_Params_Data)");
class EventObserverForExtension_OnConfigureDialog_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::String_Data> configuration_name;
private:
friend class mojo::internal::MessageFragment<EventObserverForExtension_OnConfigureDialog_Params_Data>;
EventObserverForExtension_OnConfigureDialog_Params_Data();
~EventObserverForExtension_OnConfigureDialog_Params_Data() = delete;
};
static_assert(sizeof(EventObserverForExtension_OnConfigureDialog_Params_Data) == 16,
"Bad sizeof(EventObserverForExtension_OnConfigureDialog_Params_Data)");
class EventObserverForExtension_OnConfigRemoved_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::String_Data> configuration_name;
private:
friend class mojo::internal::MessageFragment<EventObserverForExtension_OnConfigRemoved_Params_Data>;
EventObserverForExtension_OnConfigRemoved_Params_Data();
~EventObserverForExtension_OnConfigRemoved_Params_Data() = delete;
};
static_assert(sizeof(EventObserverForExtension_OnConfigRemoved_Params_Data) == 16,
"Bad sizeof(EventObserverForExtension_OnConfigRemoved_Params_Data)");
class EventObserverForExtension_OnPlatformMessage_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::String_Data> configuration_name;
int32_t platform_message;
uint8_t pad1_[4];
mojo::internal::Pointer<mojo::internal::String_Data> error;
private:
friend class mojo::internal::MessageFragment<EventObserverForExtension_OnPlatformMessage_Params_Data>;
EventObserverForExtension_OnPlatformMessage_Params_Data();
~EventObserverForExtension_OnPlatformMessage_Params_Data() = delete;
};
static_assert(sizeof(EventObserverForExtension_OnPlatformMessage_Params_Data) == 32,
"Bad sizeof(EventObserverForExtension_OnPlatformMessage_Params_Data)");
class EventObserverForExtension_OnPacketReceived_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::Array_Data<uint8_t>> data;
private:
friend class mojo::internal::MessageFragment<EventObserverForExtension_OnPacketReceived_Params_Data>;
EventObserverForExtension_OnPacketReceived_Params_Data();
~EventObserverForExtension_OnPacketReceived_Params_Data() = delete;
};
static_assert(sizeof(EventObserverForExtension_OnPacketReceived_Params_Data) == 16,
"Bad sizeof(EventObserverForExtension_OnPacketReceived_Params_Data)");
class VpnServiceForExtension_CreateConfiguration_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::String_Data> configuration_name;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_CreateConfiguration_Params_Data>;
VpnServiceForExtension_CreateConfiguration_Params_Data();
~VpnServiceForExtension_CreateConfiguration_Params_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_CreateConfiguration_Params_Data) == 16,
"Bad sizeof(VpnServiceForExtension_CreateConfiguration_Params_Data)");
class VpnServiceForExtension_CreateConfiguration_ResponseParams_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<internal::VpnErrorResponse_Data> error;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_CreateConfiguration_ResponseParams_Data>;
VpnServiceForExtension_CreateConfiguration_ResponseParams_Data();
~VpnServiceForExtension_CreateConfiguration_ResponseParams_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_CreateConfiguration_ResponseParams_Data) == 16,
"Bad sizeof(VpnServiceForExtension_CreateConfiguration_ResponseParams_Data)");
class VpnServiceForExtension_DestroyConfiguration_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::String_Data> configuration_name;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_DestroyConfiguration_Params_Data>;
VpnServiceForExtension_DestroyConfiguration_Params_Data();
~VpnServiceForExtension_DestroyConfiguration_Params_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_DestroyConfiguration_Params_Data) == 16,
"Bad sizeof(VpnServiceForExtension_DestroyConfiguration_Params_Data)");
class VpnServiceForExtension_DestroyConfiguration_ResponseParams_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<internal::VpnErrorResponse_Data> error;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_DestroyConfiguration_ResponseParams_Data>;
VpnServiceForExtension_DestroyConfiguration_ResponseParams_Data();
~VpnServiceForExtension_DestroyConfiguration_ResponseParams_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_DestroyConfiguration_ResponseParams_Data) == 16,
"Bad sizeof(VpnServiceForExtension_DestroyConfiguration_ResponseParams_Data)");
class VpnServiceForExtension_SetParameters_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<::mojo_base::mojom::internal::DictionaryValue_Data> parameters;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_SetParameters_Params_Data>;
VpnServiceForExtension_SetParameters_Params_Data();
~VpnServiceForExtension_SetParameters_Params_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_SetParameters_Params_Data) == 16,
"Bad sizeof(VpnServiceForExtension_SetParameters_Params_Data)");
class VpnServiceForExtension_SetParameters_ResponseParams_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<internal::VpnErrorResponse_Data> error;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_SetParameters_ResponseParams_Data>;
VpnServiceForExtension_SetParameters_ResponseParams_Data();
~VpnServiceForExtension_SetParameters_ResponseParams_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_SetParameters_ResponseParams_Data) == 16,
"Bad sizeof(VpnServiceForExtension_SetParameters_ResponseParams_Data)");
class VpnServiceForExtension_SendPacket_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::Array_Data<uint8_t>> data;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_SendPacket_Params_Data>;
VpnServiceForExtension_SendPacket_Params_Data();
~VpnServiceForExtension_SendPacket_Params_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_SendPacket_Params_Data) == 16,
"Bad sizeof(VpnServiceForExtension_SendPacket_Params_Data)");
class VpnServiceForExtension_SendPacket_ResponseParams_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<internal::VpnErrorResponse_Data> error;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_SendPacket_ResponseParams_Data>;
VpnServiceForExtension_SendPacket_ResponseParams_Data();
~VpnServiceForExtension_SendPacket_ResponseParams_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_SendPacket_ResponseParams_Data) == 16,
"Bad sizeof(VpnServiceForExtension_SendPacket_ResponseParams_Data)");
class VpnServiceForExtension_NotifyConnectionStateChanged_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
uint8_t connection_success : 1;
uint8_t padfinal_[7];
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_NotifyConnectionStateChanged_Params_Data>;
VpnServiceForExtension_NotifyConnectionStateChanged_Params_Data();
~VpnServiceForExtension_NotifyConnectionStateChanged_Params_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_NotifyConnectionStateChanged_Params_Data) == 16,
"Bad sizeof(VpnServiceForExtension_NotifyConnectionStateChanged_Params_Data)");
class VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParams_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<internal::VpnErrorResponse_Data> error;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParams_Data>;
VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParams_Data();
~VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParams_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParams_Data) == 16,
"Bad sizeof(VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParams_Data)");
class VpnServiceForExtension_BindPepperVpnProxyObserver_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::String_Data> configuration_name;
mojo::internal::Interface_Data pepper_vpn_proxy_observer;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_BindPepperVpnProxyObserver_Params_Data>;
VpnServiceForExtension_BindPepperVpnProxyObserver_Params_Data();
~VpnServiceForExtension_BindPepperVpnProxyObserver_Params_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_BindPepperVpnProxyObserver_Params_Data) == 24,
"Bad sizeof(VpnServiceForExtension_BindPepperVpnProxyObserver_Params_Data)");
class VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParams_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<internal::VpnErrorResponse_Data> error;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParams_Data>;
VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParams_Data();
~VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParams_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParams_Data) == 16,
"Bad sizeof(VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParams_Data)");
class VpnServiceForExtension_DispatchAddDialogEvent_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_DispatchAddDialogEvent_Params_Data>;
VpnServiceForExtension_DispatchAddDialogEvent_Params_Data();
~VpnServiceForExtension_DispatchAddDialogEvent_Params_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_DispatchAddDialogEvent_Params_Data) == 8,
"Bad sizeof(VpnServiceForExtension_DispatchAddDialogEvent_Params_Data)");
class VpnServiceForExtension_DispatchConfigureDialogEvent_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::String_Data> configuration_name;
private:
friend class mojo::internal::MessageFragment<VpnServiceForExtension_DispatchConfigureDialogEvent_Params_Data>;
VpnServiceForExtension_DispatchConfigureDialogEvent_Params_Data();
~VpnServiceForExtension_DispatchConfigureDialogEvent_Params_Data() = delete;
};
static_assert(sizeof(VpnServiceForExtension_DispatchConfigureDialogEvent_Params_Data) == 16,
"Bad sizeof(VpnServiceForExtension_DispatchConfigureDialogEvent_Params_Data)");
class VpnService_RegisterVpnServiceForExtension_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::String_Data> extension_id;
mojo::internal::Handle_Data receiver;
mojo::internal::Interface_Data observer;
uint8_t padfinal_[4];
private:
friend class mojo::internal::MessageFragment<VpnService_RegisterVpnServiceForExtension_Params_Data>;
VpnService_RegisterVpnServiceForExtension_Params_Data();
~VpnService_RegisterVpnServiceForExtension_Params_Data() = delete;
};
static_assert(sizeof(VpnService_RegisterVpnServiceForExtension_Params_Data) == 32,
"Bad sizeof(VpnService_RegisterVpnServiceForExtension_Params_Data)");
class VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_Params_Data {
public:
static bool Validate(const void* data,
mojo::internal::ValidationContext* validation_context);
mojo::internal::StructHeader header_;
mojo::internal::Pointer<mojo::internal::String_Data> extension_id;
uint8_t destroy_configurations : 1;
uint8_t padfinal_[7];
private:
friend class mojo::internal::MessageFragment<VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_Params_Data>;
VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_Params_Data();
~VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_Params_Data() = delete;
};
static_assert(sizeof(VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_Params_Data) == 24,
"Bad sizeof(VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_Params_Data)");
} // namespace internal
class PepperVpnProxyObserver_OnUnbind_ParamsDataView {
public:
PepperVpnProxyObserver_OnUnbind_ParamsDataView() = default;
PepperVpnProxyObserver_OnUnbind_ParamsDataView(
internal::PepperVpnProxyObserver_OnUnbind_Params_Data* data,
mojo::Message* message)
: data_(data) {}
bool is_null() const { return !data_; }
private:
internal::PepperVpnProxyObserver_OnUnbind_Params_Data* data_ = nullptr;
};
class PepperVpnProxyObserver_OnPacketReceived_ParamsDataView {
public:
PepperVpnProxyObserver_OnPacketReceived_ParamsDataView() = default;
PepperVpnProxyObserver_OnPacketReceived_ParamsDataView(
internal::PepperVpnProxyObserver_OnPacketReceived_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetDataDataView(
mojo::ArrayDataView<uint8_t>* output);
template <typename UserType>
[[nodiscard]] bool ReadData(UserType* output) {
auto* pointer = data_->data.Get();
return mojo::internal::Deserialize<mojo::ArrayDataView<uint8_t>>(
pointer, output, message_);
}
private:
internal::PepperVpnProxyObserver_OnPacketReceived_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class EventObserverForExtension_OnAddDialog_ParamsDataView {
public:
EventObserverForExtension_OnAddDialog_ParamsDataView() = default;
EventObserverForExtension_OnAddDialog_ParamsDataView(
internal::EventObserverForExtension_OnAddDialog_Params_Data* data,
mojo::Message* message)
: data_(data) {}
bool is_null() const { return !data_; }
private:
internal::EventObserverForExtension_OnAddDialog_Params_Data* data_ = nullptr;
};
class EventObserverForExtension_OnConfigureDialog_ParamsDataView {
public:
EventObserverForExtension_OnConfigureDialog_ParamsDataView() = default;
EventObserverForExtension_OnConfigureDialog_ParamsDataView(
internal::EventObserverForExtension_OnConfigureDialog_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetConfigurationNameDataView(
mojo::StringDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadConfigurationName(UserType* output) {
auto* pointer = data_->configuration_name.Get();
return mojo::internal::Deserialize<mojo::StringDataView>(
pointer, output, message_);
}
private:
internal::EventObserverForExtension_OnConfigureDialog_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class EventObserverForExtension_OnConfigRemoved_ParamsDataView {
public:
EventObserverForExtension_OnConfigRemoved_ParamsDataView() = default;
EventObserverForExtension_OnConfigRemoved_ParamsDataView(
internal::EventObserverForExtension_OnConfigRemoved_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetConfigurationNameDataView(
mojo::StringDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadConfigurationName(UserType* output) {
auto* pointer = data_->configuration_name.Get();
return mojo::internal::Deserialize<mojo::StringDataView>(
pointer, output, message_);
}
private:
internal::EventObserverForExtension_OnConfigRemoved_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class EventObserverForExtension_OnPlatformMessage_ParamsDataView {
public:
EventObserverForExtension_OnPlatformMessage_ParamsDataView() = default;
EventObserverForExtension_OnPlatformMessage_ParamsDataView(
internal::EventObserverForExtension_OnPlatformMessage_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetConfigurationNameDataView(
mojo::StringDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadConfigurationName(UserType* output) {
auto* pointer = data_->configuration_name.Get();
return mojo::internal::Deserialize<mojo::StringDataView>(
pointer, output, message_);
}
int32_t platform_message() const {
return data_->platform_message;
}
inline void GetErrorDataView(
mojo::StringDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadError(UserType* output) {
static_assert(
mojo::internal::IsValidUserTypeForOptionalValue<
mojo::StringDataView, UserType>(),
"Attempting to read the optional `error` field into a type which "
"cannot represent a null value. Either wrap the destination object "
"with absl::optional, ensure that any corresponding "
"{Struct/Union/Array/String}Traits define the necessary IsNull and "
"SetToNull methods, or use `MaybeReadError` instead "
"of `ReadError if you're fine with null values being "
"silently ignored in this case.");
auto* pointer = data_->error.Get();
return mojo::internal::Deserialize<mojo::StringDataView>(
pointer, output, message_);
}
private:
internal::EventObserverForExtension_OnPlatformMessage_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class EventObserverForExtension_OnPacketReceived_ParamsDataView {
public:
EventObserverForExtension_OnPacketReceived_ParamsDataView() = default;
EventObserverForExtension_OnPacketReceived_ParamsDataView(
internal::EventObserverForExtension_OnPacketReceived_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetDataDataView(
mojo::ArrayDataView<uint8_t>* output);
template <typename UserType>
[[nodiscard]] bool ReadData(UserType* output) {
auto* pointer = data_->data.Get();
return mojo::internal::Deserialize<mojo::ArrayDataView<uint8_t>>(
pointer, output, message_);
}
private:
internal::EventObserverForExtension_OnPacketReceived_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_CreateConfiguration_ParamsDataView {
public:
VpnServiceForExtension_CreateConfiguration_ParamsDataView() = default;
VpnServiceForExtension_CreateConfiguration_ParamsDataView(
internal::VpnServiceForExtension_CreateConfiguration_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetConfigurationNameDataView(
mojo::StringDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadConfigurationName(UserType* output) {
auto* pointer = data_->configuration_name.Get();
return mojo::internal::Deserialize<mojo::StringDataView>(
pointer, output, message_);
}
private:
internal::VpnServiceForExtension_CreateConfiguration_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_CreateConfiguration_ResponseParamsDataView {
public:
VpnServiceForExtension_CreateConfiguration_ResponseParamsDataView() = default;
VpnServiceForExtension_CreateConfiguration_ResponseParamsDataView(
internal::VpnServiceForExtension_CreateConfiguration_ResponseParams_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetErrorDataView(
VpnErrorResponseDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadError(UserType* output) {
static_assert(
mojo::internal::IsValidUserTypeForOptionalValue<
::crosapi::mojom::VpnErrorResponseDataView, UserType>(),
"Attempting to read the optional `error` field into a type which "
"cannot represent a null value. Either wrap the destination object "
"with absl::optional, ensure that any corresponding "
"{Struct/Union/Array/String}Traits define the necessary IsNull and "
"SetToNull methods, or use `MaybeReadError` instead "
"of `ReadError if you're fine with null values being "
"silently ignored in this case.");
auto* pointer = data_->error.Get();
return mojo::internal::Deserialize<::crosapi::mojom::VpnErrorResponseDataView>(
pointer, output, message_);
}
private:
internal::VpnServiceForExtension_CreateConfiguration_ResponseParams_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_DestroyConfiguration_ParamsDataView {
public:
VpnServiceForExtension_DestroyConfiguration_ParamsDataView() = default;
VpnServiceForExtension_DestroyConfiguration_ParamsDataView(
internal::VpnServiceForExtension_DestroyConfiguration_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetConfigurationNameDataView(
mojo::StringDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadConfigurationName(UserType* output) {
auto* pointer = data_->configuration_name.Get();
return mojo::internal::Deserialize<mojo::StringDataView>(
pointer, output, message_);
}
private:
internal::VpnServiceForExtension_DestroyConfiguration_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_DestroyConfiguration_ResponseParamsDataView {
public:
VpnServiceForExtension_DestroyConfiguration_ResponseParamsDataView() = default;
VpnServiceForExtension_DestroyConfiguration_ResponseParamsDataView(
internal::VpnServiceForExtension_DestroyConfiguration_ResponseParams_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetErrorDataView(
VpnErrorResponseDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadError(UserType* output) {
static_assert(
mojo::internal::IsValidUserTypeForOptionalValue<
::crosapi::mojom::VpnErrorResponseDataView, UserType>(),
"Attempting to read the optional `error` field into a type which "
"cannot represent a null value. Either wrap the destination object "
"with absl::optional, ensure that any corresponding "
"{Struct/Union/Array/String}Traits define the necessary IsNull and "
"SetToNull methods, or use `MaybeReadError` instead "
"of `ReadError if you're fine with null values being "
"silently ignored in this case.");
auto* pointer = data_->error.Get();
return mojo::internal::Deserialize<::crosapi::mojom::VpnErrorResponseDataView>(
pointer, output, message_);
}
private:
internal::VpnServiceForExtension_DestroyConfiguration_ResponseParams_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_SetParameters_ParamsDataView {
public:
VpnServiceForExtension_SetParameters_ParamsDataView() = default;
VpnServiceForExtension_SetParameters_ParamsDataView(
internal::VpnServiceForExtension_SetParameters_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetParametersDataView(
::mojo_base::mojom::DictionaryValueDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadParameters(UserType* output) {
auto* pointer = data_->parameters.Get();
return mojo::internal::Deserialize<::mojo_base::mojom::DictionaryValueDataView>(
pointer, output, message_);
}
private:
internal::VpnServiceForExtension_SetParameters_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_SetParameters_ResponseParamsDataView {
public:
VpnServiceForExtension_SetParameters_ResponseParamsDataView() = default;
VpnServiceForExtension_SetParameters_ResponseParamsDataView(
internal::VpnServiceForExtension_SetParameters_ResponseParams_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetErrorDataView(
VpnErrorResponseDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadError(UserType* output) {
static_assert(
mojo::internal::IsValidUserTypeForOptionalValue<
::crosapi::mojom::VpnErrorResponseDataView, UserType>(),
"Attempting to read the optional `error` field into a type which "
"cannot represent a null value. Either wrap the destination object "
"with absl::optional, ensure that any corresponding "
"{Struct/Union/Array/String}Traits define the necessary IsNull and "
"SetToNull methods, or use `MaybeReadError` instead "
"of `ReadError if you're fine with null values being "
"silently ignored in this case.");
auto* pointer = data_->error.Get();
return mojo::internal::Deserialize<::crosapi::mojom::VpnErrorResponseDataView>(
pointer, output, message_);
}
private:
internal::VpnServiceForExtension_SetParameters_ResponseParams_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_SendPacket_ParamsDataView {
public:
VpnServiceForExtension_SendPacket_ParamsDataView() = default;
VpnServiceForExtension_SendPacket_ParamsDataView(
internal::VpnServiceForExtension_SendPacket_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetDataDataView(
mojo::ArrayDataView<uint8_t>* output);
template <typename UserType>
[[nodiscard]] bool ReadData(UserType* output) {
auto* pointer = data_->data.Get();
return mojo::internal::Deserialize<mojo::ArrayDataView<uint8_t>>(
pointer, output, message_);
}
private:
internal::VpnServiceForExtension_SendPacket_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_SendPacket_ResponseParamsDataView {
public:
VpnServiceForExtension_SendPacket_ResponseParamsDataView() = default;
VpnServiceForExtension_SendPacket_ResponseParamsDataView(
internal::VpnServiceForExtension_SendPacket_ResponseParams_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetErrorDataView(
VpnErrorResponseDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadError(UserType* output) {
static_assert(
mojo::internal::IsValidUserTypeForOptionalValue<
::crosapi::mojom::VpnErrorResponseDataView, UserType>(),
"Attempting to read the optional `error` field into a type which "
"cannot represent a null value. Either wrap the destination object "
"with absl::optional, ensure that any corresponding "
"{Struct/Union/Array/String}Traits define the necessary IsNull and "
"SetToNull methods, or use `MaybeReadError` instead "
"of `ReadError if you're fine with null values being "
"silently ignored in this case.");
auto* pointer = data_->error.Get();
return mojo::internal::Deserialize<::crosapi::mojom::VpnErrorResponseDataView>(
pointer, output, message_);
}
private:
internal::VpnServiceForExtension_SendPacket_ResponseParams_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_NotifyConnectionStateChanged_ParamsDataView {
public:
VpnServiceForExtension_NotifyConnectionStateChanged_ParamsDataView() = default;
VpnServiceForExtension_NotifyConnectionStateChanged_ParamsDataView(
internal::VpnServiceForExtension_NotifyConnectionStateChanged_Params_Data* data,
mojo::Message* message)
: data_(data) {}
bool is_null() const { return !data_; }
bool connection_success() const {
return data_->connection_success;
}
private:
internal::VpnServiceForExtension_NotifyConnectionStateChanged_Params_Data* data_ = nullptr;
};
class VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParamsDataView {
public:
VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParamsDataView() = default;
VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParamsDataView(
internal::VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParams_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetErrorDataView(
VpnErrorResponseDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadError(UserType* output) {
static_assert(
mojo::internal::IsValidUserTypeForOptionalValue<
::crosapi::mojom::VpnErrorResponseDataView, UserType>(),
"Attempting to read the optional `error` field into a type which "
"cannot represent a null value. Either wrap the destination object "
"with absl::optional, ensure that any corresponding "
"{Struct/Union/Array/String}Traits define the necessary IsNull and "
"SetToNull methods, or use `MaybeReadError` instead "
"of `ReadError if you're fine with null values being "
"silently ignored in this case.");
auto* pointer = data_->error.Get();
return mojo::internal::Deserialize<::crosapi::mojom::VpnErrorResponseDataView>(
pointer, output, message_);
}
private:
internal::VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParams_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_BindPepperVpnProxyObserver_ParamsDataView {
public:
VpnServiceForExtension_BindPepperVpnProxyObserver_ParamsDataView() = default;
VpnServiceForExtension_BindPepperVpnProxyObserver_ParamsDataView(
internal::VpnServiceForExtension_BindPepperVpnProxyObserver_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetConfigurationNameDataView(
mojo::StringDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadConfigurationName(UserType* output) {
auto* pointer = data_->configuration_name.Get();
return mojo::internal::Deserialize<mojo::StringDataView>(
pointer, output, message_);
}
template <typename UserType>
UserType TakePepperVpnProxyObserver() {
UserType result;
bool ret =
mojo::internal::Deserialize<mojo::InterfacePtrDataView<::crosapi::mojom::PepperVpnProxyObserverInterfaceBase>>(
&data_->pepper_vpn_proxy_observer, &result, message_);
DCHECK(ret);
return result;
}
private:
internal::VpnServiceForExtension_BindPepperVpnProxyObserver_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParamsDataView {
public:
VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParamsDataView() = default;
VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParamsDataView(
internal::VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParams_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetErrorDataView(
VpnErrorResponseDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadError(UserType* output) {
static_assert(
mojo::internal::IsValidUserTypeForOptionalValue<
::crosapi::mojom::VpnErrorResponseDataView, UserType>(),
"Attempting to read the optional `error` field into a type which "
"cannot represent a null value. Either wrap the destination object "
"with absl::optional, ensure that any corresponding "
"{Struct/Union/Array/String}Traits define the necessary IsNull and "
"SetToNull methods, or use `MaybeReadError` instead "
"of `ReadError if you're fine with null values being "
"silently ignored in this case.");
auto* pointer = data_->error.Get();
return mojo::internal::Deserialize<::crosapi::mojom::VpnErrorResponseDataView>(
pointer, output, message_);
}
private:
internal::VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParams_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnServiceForExtension_DispatchAddDialogEvent_ParamsDataView {
public:
VpnServiceForExtension_DispatchAddDialogEvent_ParamsDataView() = default;
VpnServiceForExtension_DispatchAddDialogEvent_ParamsDataView(
internal::VpnServiceForExtension_DispatchAddDialogEvent_Params_Data* data,
mojo::Message* message)
: data_(data) {}
bool is_null() const { return !data_; }
private:
internal::VpnServiceForExtension_DispatchAddDialogEvent_Params_Data* data_ = nullptr;
};
class VpnServiceForExtension_DispatchConfigureDialogEvent_ParamsDataView {
public:
VpnServiceForExtension_DispatchConfigureDialogEvent_ParamsDataView() = default;
VpnServiceForExtension_DispatchConfigureDialogEvent_ParamsDataView(
internal::VpnServiceForExtension_DispatchConfigureDialogEvent_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetConfigurationNameDataView(
mojo::StringDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadConfigurationName(UserType* output) {
auto* pointer = data_->configuration_name.Get();
return mojo::internal::Deserialize<mojo::StringDataView>(
pointer, output, message_);
}
private:
internal::VpnServiceForExtension_DispatchConfigureDialogEvent_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnService_RegisterVpnServiceForExtension_ParamsDataView {
public:
VpnService_RegisterVpnServiceForExtension_ParamsDataView() = default;
VpnService_RegisterVpnServiceForExtension_ParamsDataView(
internal::VpnService_RegisterVpnServiceForExtension_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetExtensionIdDataView(
mojo::StringDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadExtensionId(UserType* output) {
auto* pointer = data_->extension_id.Get();
return mojo::internal::Deserialize<mojo::StringDataView>(
pointer, output, message_);
}
template <typename UserType>
UserType TakeReceiver() {
UserType result;
bool ret =
mojo::internal::Deserialize<mojo::InterfaceRequestDataView<::crosapi::mojom::VpnServiceForExtensionInterfaceBase>>(
&data_->receiver, &result, message_);
DCHECK(ret);
return result;
}
template <typename UserType>
UserType TakeObserver() {
UserType result;
bool ret =
mojo::internal::Deserialize<mojo::InterfacePtrDataView<::crosapi::mojom::EventObserverForExtensionInterfaceBase>>(
&data_->observer, &result, message_);
DCHECK(ret);
return result;
}
private:
internal::VpnService_RegisterVpnServiceForExtension_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
class VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_ParamsDataView {
public:
VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_ParamsDataView() = default;
VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_ParamsDataView(
internal::VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_Params_Data* data,
mojo::Message* message)
: data_(data), message_(message) {}
bool is_null() const { return !data_; }
inline void GetExtensionIdDataView(
mojo::StringDataView* output);
template <typename UserType>
[[nodiscard]] bool ReadExtensionId(UserType* output) {
auto* pointer = data_->extension_id.Get();
return mojo::internal::Deserialize<mojo::StringDataView>(
pointer, output, message_);
}
bool destroy_configurations() const {
return data_->destroy_configurations;
}
private:
internal::VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_Params_Data* data_ = nullptr;
mojo::Message* message_ = nullptr;
};
inline void PepperVpnProxyObserver_OnPacketReceived_ParamsDataView::GetDataDataView(
mojo::ArrayDataView<uint8_t>* output) {
auto pointer = data_->data.Get();
*output = mojo::ArrayDataView<uint8_t>(pointer, message_);
}
inline void EventObserverForExtension_OnConfigureDialog_ParamsDataView::GetConfigurationNameDataView(
mojo::StringDataView* output) {
auto pointer = data_->configuration_name.Get();
*output = mojo::StringDataView(pointer, message_);
}
inline void EventObserverForExtension_OnConfigRemoved_ParamsDataView::GetConfigurationNameDataView(
mojo::StringDataView* output) {
auto pointer = data_->configuration_name.Get();
*output = mojo::StringDataView(pointer, message_);
}
inline void EventObserverForExtension_OnPlatformMessage_ParamsDataView::GetConfigurationNameDataView(
mojo::StringDataView* output) {
auto pointer = data_->configuration_name.Get();
*output = mojo::StringDataView(pointer, message_);
}
inline void EventObserverForExtension_OnPlatformMessage_ParamsDataView::GetErrorDataView(
mojo::StringDataView* output) {
auto pointer = data_->error.Get();
*output = mojo::StringDataView(pointer, message_);
}
inline void EventObserverForExtension_OnPacketReceived_ParamsDataView::GetDataDataView(
mojo::ArrayDataView<uint8_t>* output) {
auto pointer = data_->data.Get();
*output = mojo::ArrayDataView<uint8_t>(pointer, message_);
}
inline void VpnServiceForExtension_CreateConfiguration_ParamsDataView::GetConfigurationNameDataView(
mojo::StringDataView* output) {
auto pointer = data_->configuration_name.Get();
*output = mojo::StringDataView(pointer, message_);
}
inline void VpnServiceForExtension_CreateConfiguration_ResponseParamsDataView::GetErrorDataView(
VpnErrorResponseDataView* output) {
auto pointer = data_->error.Get();
*output = VpnErrorResponseDataView(pointer, message_);
}
inline void VpnServiceForExtension_DestroyConfiguration_ParamsDataView::GetConfigurationNameDataView(
mojo::StringDataView* output) {
auto pointer = data_->configuration_name.Get();
*output = mojo::StringDataView(pointer, message_);
}
inline void VpnServiceForExtension_DestroyConfiguration_ResponseParamsDataView::GetErrorDataView(
VpnErrorResponseDataView* output) {
auto pointer = data_->error.Get();
*output = VpnErrorResponseDataView(pointer, message_);
}
inline void VpnServiceForExtension_SetParameters_ParamsDataView::GetParametersDataView(
::mojo_base::mojom::DictionaryValueDataView* output) {
auto pointer = data_->parameters.Get();
*output = ::mojo_base::mojom::DictionaryValueDataView(pointer, message_);
}
inline void VpnServiceForExtension_SetParameters_ResponseParamsDataView::GetErrorDataView(
VpnErrorResponseDataView* output) {
auto pointer = data_->error.Get();
*output = VpnErrorResponseDataView(pointer, message_);
}
inline void VpnServiceForExtension_SendPacket_ParamsDataView::GetDataDataView(
mojo::ArrayDataView<uint8_t>* output) {
auto pointer = data_->data.Get();
*output = mojo::ArrayDataView<uint8_t>(pointer, message_);
}
inline void VpnServiceForExtension_SendPacket_ResponseParamsDataView::GetErrorDataView(
VpnErrorResponseDataView* output) {
auto pointer = data_->error.Get();
*output = VpnErrorResponseDataView(pointer, message_);
}
inline void VpnServiceForExtension_NotifyConnectionStateChanged_ResponseParamsDataView::GetErrorDataView(
VpnErrorResponseDataView* output) {
auto pointer = data_->error.Get();
*output = VpnErrorResponseDataView(pointer, message_);
}
inline void VpnServiceForExtension_BindPepperVpnProxyObserver_ParamsDataView::GetConfigurationNameDataView(
mojo::StringDataView* output) {
auto pointer = data_->configuration_name.Get();
*output = mojo::StringDataView(pointer, message_);
}
inline void VpnServiceForExtension_BindPepperVpnProxyObserver_ResponseParamsDataView::GetErrorDataView(
VpnErrorResponseDataView* output) {
auto pointer = data_->error.Get();
*output = VpnErrorResponseDataView(pointer, message_);
}
inline void VpnServiceForExtension_DispatchConfigureDialogEvent_ParamsDataView::GetConfigurationNameDataView(
mojo::StringDataView* output) {
auto pointer = data_->configuration_name.Get();
*output = mojo::StringDataView(pointer, message_);
}
inline void VpnService_RegisterVpnServiceForExtension_ParamsDataView::GetExtensionIdDataView(
mojo::StringDataView* output) {
auto pointer = data_->extension_id.Get();
*output = mojo::StringDataView(pointer, message_);
}
inline void VpnService_MaybeFailActiveConnectionAndDestroyConfigurations_ParamsDataView::GetExtensionIdDataView(
mojo::StringDataView* output) {
auto pointer = data_->extension_id.Get();
*output = mojo::StringDataView(pointer, message_);
}
} // namespace mojom
} // namespace crosapi
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#endif // CHROMEOS_CROSAPI_MOJOM_VPN_SERVICE_MOJOM_PARAMS_DATA_H_