#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "media/mojo/mojom/output_protection.mojom.h"
#include <math.h>
#include <stdint.h>
#include <utility>
#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "media/mojo/mojom/output_protection.mojom-params-data.h"
#include "media/mojo/mojom/output_protection.mojom-shared-message-ids.h"
#include "media/mojo/mojom/output_protection.mojom-import-headers.h"
#include "media/mojo/mojom/output_protection.mojom-test-utils.h"
namespace media::mojom {
const char OutputProtection::Name_[] = …;
OutputProtection::IPCStableHashFunction OutputProtection::MessageToMethodInfo_(mojo::Message& message) { … }
const char* OutputProtection::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t OutputProtection::QueryStatus_Sym::IPCStableHash() { … }
uint32_t OutputProtection::EnableProtection_Sym::IPCStableHash() { … }
# endif
class OutputProtection_QueryStatus_ForwardToCallback
: public mojo::MessageReceiver { … };
class OutputProtection_EnableProtection_ForwardToCallback
: public mojo::MessageReceiver { … };
OutputProtectionProxy::OutputProtectionProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void OutputProtectionProxy::QueryStatus(
QueryStatusCallback callback) { … }
void OutputProtectionProxy::EnableProtection(
uint32_t in_desired_protection_mask, EnableProtectionCallback callback) { … }
class OutputProtection_QueryStatus_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool OutputProtection_QueryStatus_ForwardToCallback::Accept(
mojo::Message* message) { … }
void OutputProtection_QueryStatus_ProxyToResponder::Run(
bool in_success, uint32_t in_link_mask, uint32_t in_protection_mask) { … }
class OutputProtection_EnableProtection_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool OutputProtection_EnableProtection_ForwardToCallback::Accept(
mojo::Message* message) { … }
void OutputProtection_EnableProtection_ProxyToResponder::Run(
bool in_success) { … }
bool OutputProtectionStubDispatch::Accept(
OutputProtection* impl,
mojo::Message* message) { … }
bool OutputProtectionStubDispatch::AcceptWithResponder(
OutputProtection* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kOutputProtectionValidationInfo[] = …;
bool OutputProtectionRequestValidator::Accept(mojo::Message* message) { … }
bool OutputProtectionResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace media::mojom {
void OutputProtectionInterceptorForTesting::QueryStatus(QueryStatusCallback callback) { … }
void OutputProtectionInterceptorForTesting::EnableProtection(uint32_t desired_protection_mask, EnableProtectionCallback callback) { … }
OutputProtectionAsyncWaiter::OutputProtectionAsyncWaiter(
OutputProtection* proxy) : … { … }
OutputProtectionAsyncWaiter::~OutputProtectionAsyncWaiter() = default;
void OutputProtectionAsyncWaiter::QueryStatus(
bool* out_success, uint32_t* out_link_mask, uint32_t* out_protection_mask) { … }
void OutputProtectionAsyncWaiter::EnableProtection(
uint32_t desired_protection_mask, bool* out_success) { … }
bool OutputProtectionAsyncWaiter::EnableProtection(
uint32_t desired_protection_mask) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif