blob: e4552782a788ad9ad386af481a53c5661639535d [file] [log] [blame]
// services/device/public/mojom/geolocation_control.mojom.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2013 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 SERVICES_DEVICE_PUBLIC_MOJOM_GEOLOCATION_CONTROL_MOJOM_H_
#define SERVICES_DEVICE_PUBLIC_MOJOM_GEOLOCATION_CONTROL_MOJOM_H_
#include <stdint.h>
#include <limits>
#include <type_traits>
#include <utility>
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "services/device/public/mojom/geolocation_control.mojom-shared.h"
#include "services/device/public/mojom/geolocation_control.mojom-forward.h"
#include <string>
#include <vector>
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
#ifdef KYTHE_IS_RUNNING
#pragma kythe_inline_metadata "Metadata comment"
#endif
namespace device {
namespace mojom {
class GeolocationControlProxy;
template <typename ImplRefTraits>
class GeolocationControlStub;
class GeolocationControlRequestValidator;
// @generated_from: device.mojom.GeolocationControl
class GeolocationControl
: public GeolocationControlInterfaceBase {
public:
static const char Name_[];
static std::pair<uint32_t, const void*> MessageToMethodInfo_(mojo::Message& message);
static const char* MessageToMethodName_(mojo::Message& message);
static constexpr uint32_t Version_ = 0;
static constexpr bool PassesAssociatedKinds_ = false;
static constexpr bool HasSyncMethods_ = false;
static constexpr bool HasUninterruptableMethods_ = false;
using Base_ = GeolocationControlInterfaceBase;
using Proxy_ = GeolocationControlProxy;
template <typename ImplRefTraits>
using Stub_ = GeolocationControlStub<ImplRefTraits>;
using RequestValidator_ = GeolocationControlRequestValidator;
using ResponseValidator_ = mojo::PassThroughFilter;
enum MethodMinVersions : uint32_t {
kUserDidOptIntoLocationServicesMinVersion = 0,
};
// crbug.com/1340245 - this causes binary size bloat on Fuchsia, and we're OK
// with not having this data in traces there.
#if !BUILDFLAG(IS_FUCHSIA)
struct UserDidOptIntoLocationServices_Sym {
NOINLINE static void IPCSymbol();
};
#endif // !BUILDFLAG(IS_FUCHSIA)
virtual ~GeolocationControl() = default;
// @generated_from: device.mojom.GeolocationControl.UserDidOptIntoLocationServices
virtual void UserDidOptIntoLocationServices() = 0;
};
// @generated_from: device.mojom.GeolocationControl
class GeolocationControlProxy
: public GeolocationControl {
public:
using InterfaceType = GeolocationControl;
explicit GeolocationControlProxy(mojo::MessageReceiverWithResponder* receiver);
// @generated_from: device.mojom.GeolocationControl.UserDidOptIntoLocationServices
void UserDidOptIntoLocationServices() final;
private:
mojo::MessageReceiverWithResponder* receiver_;
};
class GeolocationControlStubDispatch {
public:
static bool Accept(GeolocationControl* impl, mojo::Message* message);
static bool AcceptWithResponder(
GeolocationControl* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder);
};
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<GeolocationControl>>
class GeolocationControlStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
GeolocationControlStub() = default;
~GeolocationControlStub() override = default;
void set_sink(ImplPointerType sink) { sink_ = std::move(sink); }
ImplPointerType& sink() { return sink_; }
bool Accept(mojo::Message* message) override {
if (ImplRefTraits::IsNull(sink_))
return false;
return GeolocationControlStubDispatch::Accept(
ImplRefTraits::GetRawPointer(&sink_), message);
}
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {
if (ImplRefTraits::IsNull(sink_))
return false;
return GeolocationControlStubDispatch::AcceptWithResponder(
ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder));
}
private:
ImplPointerType sink_;
};
class GeolocationControlRequestValidator : public mojo::MessageReceiver {
public:
bool Accept(mojo::Message* message) override;
};
} // namespace mojom
} // namespace device
namespace mojo {
} // namespace mojo
#endif // SERVICES_DEVICE_PUBLIC_MOJOM_GEOLOCATION_CONTROL_MOJOM_H_
/* Metadata comment
eyJtZXRhIjogW3siZW5kIjogMTYxMCwgImJlZ2luIjogMTU5MiwgImVkZ2UiOiAiJS9reXRoZS9l
ZGdlL2dlbmVyYXRlcyIsICJ0eXBlIjogImFuY2hvcl9kZWZpbmVzIiwgInZuYW1lIjogeyJjb3Jw
dXMiOiAiY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9jaHJvbWl1bS9zcmMiLCAibGFuZ3VhZ2Ui
OiAibW9qb20iLCAic2lnbmF0dXJlIjogImRldmljZS5tb2pvbS5HZW9sb2NhdGlvbkNvbnRyb2wi
fX0sIHsiZW5kIjogMjkwNCwgImJlZ2luIjogMjg3NCwgImVkZ2UiOiAiJS9reXRoZS9lZGdlL2dl
bmVyYXRlcyIsICJ0eXBlIjogImFuY2hvcl9kZWZpbmVzIiwgInZuYW1lIjogeyJjb3JwdXMiOiAi
Y2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9jaHJvbWl1bS9zcmMiLCAibGFuZ3VhZ2UiOiAibW9q
b20iLCAic2lnbmF0dXJlIjogImRldmljZS5tb2pvbS5HZW9sb2NhdGlvbkNvbnRyb2wuVXNlckRp
ZE9wdEludG9Mb2NhdGlvblNlcnZpY2VzIn19LCB7ImVuZCI6IDMyOTQsICJiZWdpbiI6IDMyNjQs
ICJlZGdlIjogIiUva3l0aGUvZWRnZS9nZW5lcmF0ZXMiLCAidHlwZSI6ICJhbmNob3JfZGVmaW5l
cyIsICJ2bmFtZSI6IHsiY29ycHVzIjogImNocm9taXVtLmdvb2dsZXNvdXJjZS5jb20vY2hyb21p
dW0vc3JjIiwgImxhbmd1YWdlIjogIm1vam9tIiwgInNpZ25hdHVyZSI6ICJkZXZpY2UubW9qb20u
R2VvbG9jYXRpb25Db250cm9sLlVzZXJEaWRPcHRJbnRvTG9jYXRpb25TZXJ2aWNlcyJ9fV0sICJ0
eXBlIjogImt5dGhlMCJ9
*/