#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/device/public/mojom/wake_lock.mojom-blink.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 "services/device/public/mojom/wake_lock.mojom-params-data.h"
#include "services/device/public/mojom/wake_lock.mojom-shared-message-ids.h"
#include "services/device/public/mojom/wake_lock.mojom-blink-import-headers.h"
#include "services/device/public/mojom/wake_lock.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace device::mojom::blink {
const char WakeLock::Name_[] = …;
WakeLock::IPCStableHashFunction WakeLock::MessageToMethodInfo_(mojo::Message& message) { … }
const char* WakeLock::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t WakeLock::RequestWakeLock_Sym::IPCStableHash() { … }
uint32_t WakeLock::CancelWakeLock_Sym::IPCStableHash() { … }
uint32_t WakeLock::AddClient_Sym::IPCStableHash() { … }
uint32_t WakeLock::ChangeType_Sym::IPCStableHash() { … }
uint32_t WakeLock::HasWakeLockForTests_Sym::IPCStableHash() { … }
# endif
class WakeLock_ChangeType_ForwardToCallback
: public mojo::MessageReceiver { … };
class WakeLock_HasWakeLockForTests_ForwardToCallback
: public mojo::MessageReceiver { … };
WakeLockProxy::WakeLockProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void WakeLockProxy::RequestWakeLock(
) { … }
void WakeLockProxy::CancelWakeLock(
) { … }
void WakeLockProxy::AddClient(
::mojo::PendingReceiver<WakeLock> in_wake_lock) { … }
void WakeLockProxy::ChangeType(
WakeLockType in_type, ChangeTypeCallback callback) { … }
void WakeLockProxy::HasWakeLockForTests(
HasWakeLockForTestsCallback callback) { … }
class WakeLock_ChangeType_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WakeLock_ChangeType_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WakeLock_ChangeType_ProxyToResponder::Run(
bool in_result) { … }
class WakeLock_HasWakeLockForTests_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool WakeLock_HasWakeLockForTests_ForwardToCallback::Accept(
mojo::Message* message) { … }
void WakeLock_HasWakeLockForTests_ProxyToResponder::Run(
bool in_result) { … }
bool WakeLockStubDispatch::Accept(
WakeLock* impl,
mojo::Message* message) { … }
bool WakeLockStubDispatch::AcceptWithResponder(
WakeLock* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kWakeLockValidationInfo[] = …;
bool WakeLockRequestValidator::Accept(mojo::Message* message) { … }
bool WakeLockResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
}
namespace device::mojom::blink {
void WakeLockInterceptorForTesting::RequestWakeLock() { … }
void WakeLockInterceptorForTesting::CancelWakeLock() { … }
void WakeLockInterceptorForTesting::AddClient(::mojo::PendingReceiver<WakeLock> wake_lock) { … }
void WakeLockInterceptorForTesting::ChangeType(WakeLockType type, ChangeTypeCallback callback) { … }
void WakeLockInterceptorForTesting::HasWakeLockForTests(HasWakeLockForTestsCallback callback) { … }
WakeLockAsyncWaiter::WakeLockAsyncWaiter(
WakeLock* proxy) : … { … }
WakeLockAsyncWaiter::~WakeLockAsyncWaiter() = default;
void WakeLockAsyncWaiter::ChangeType(
WakeLockType type, bool* out_result) { … }
bool WakeLockAsyncWaiter::ChangeType(
WakeLockType type) { … }
void WakeLockAsyncWaiter::HasWakeLockForTests(
bool* out_result) { … }
bool WakeLockAsyncWaiter::HasWakeLockForTests(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif