| // components/mirroring/mojom/mirroring_service.mojom-blink.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 COMPONENTS_MIRRORING_MOJOM_MIRRORING_SERVICE_MOJOM_BLINK_H_ |
| #define COMPONENTS_MIRRORING_MOJOM_MIRRORING_SERVICE_MOJOM_BLINK_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 "components/mirroring/mojom/mirroring_service.mojom-shared.h" |
| #include "components/mirroring/mojom/mirroring_service.mojom-blink-forward.h" |
| #include "components/mirroring/mojom/cast_message_channel.mojom-blink-forward.h" |
| #include "components/mirroring/mojom/resource_provider.mojom-blink-forward.h" |
| #include "components/mirroring/mojom/session_observer.mojom-blink-forward.h" |
| #include "components/mirroring/mojom/session_parameters.mojom-blink-forward.h" |
| #include "sandbox/policy/mojom/context.mojom-blink-forward.h" |
| #include "sandbox/policy/mojom/sandbox.mojom-blink.h" |
| #include "ui/gfx/geometry/mojom/geometry.mojom-blink.h" |
| |
| #include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h" |
| #include "mojo/public/cpp/bindings/lib/wtf_hash_util.h" |
| #include "third_party/blink/renderer/platform/wtf/hash_functions.h" |
| #include "third_party/blink/renderer/platform/wtf/text/wtf_string.h" |
| |
| #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 |
| |
| // @generated_from: .kMirroringSandbox |
| constexpr ::sandbox::mojom::blink::Sandbox kMirroringSandbox = ::sandbox::mojom::blink::Sandbox::kService; |
| |
| |
| namespace mirroring { |
| namespace mojom { |
| namespace blink { |
| |
| class MirroringServiceProxy; |
| |
| template <typename ImplRefTraits> |
| class MirroringServiceStub; |
| |
| class MirroringServiceRequestValidator; |
| |
| |
| // @generated_from: mirroring.mojom.MirroringService |
| class MirroringService |
| : public MirroringServiceInterfaceBase { |
| 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 auto kServiceSandbox = sandbox::mojom::Sandbox::kService; |
| static constexpr uint32_t Version_ = 0; |
| static constexpr bool PassesAssociatedKinds_ = false; |
| static constexpr bool HasSyncMethods_ = false; |
| static constexpr bool HasUninterruptableMethods_ = false; |
| |
| using Base_ = MirroringServiceInterfaceBase; |
| using Proxy_ = MirroringServiceProxy; |
| |
| template <typename ImplRefTraits> |
| using Stub_ = MirroringServiceStub<ImplRefTraits>; |
| |
| using RequestValidator_ = MirroringServiceRequestValidator; |
| using ResponseValidator_ = mojo::PassThroughFilter; |
| enum MethodMinVersions : uint32_t { |
| kStartMinVersion = 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 Start_Sym { |
| NOINLINE static void IPCSymbol(); |
| }; |
| #endif // !BUILDFLAG(IS_FUCHSIA) |
| virtual ~MirroringService() = default; |
| |
| |
| // @generated_from: mirroring.mojom.MirroringService.Start |
| virtual void Start(::mirroring::mojom::blink::SessionParametersPtr params, const ::gfx::Size& max_resolution, ::mojo::PendingRemote<::mirroring::mojom::blink::SessionObserver> observer, ::mojo::PendingRemote<::mirroring::mojom::blink::ResourceProvider> resource_provider, ::mojo::PendingRemote<::mirroring::mojom::blink::CastMessageChannel> outbound_channel, ::mojo::PendingReceiver<::mirroring::mojom::blink::CastMessageChannel> inbound_channel) = 0; |
| }; |
| |
| |
| |
| // @generated_from: mirroring.mojom.MirroringService |
| class MirroringServiceProxy |
| : public MirroringService { |
| public: |
| using InterfaceType = MirroringService; |
| |
| explicit MirroringServiceProxy(mojo::MessageReceiverWithResponder* receiver); |
| |
| // @generated_from: mirroring.mojom.MirroringService.Start |
| void Start(::mirroring::mojom::blink::SessionParametersPtr params, const ::gfx::Size& max_resolution, ::mojo::PendingRemote<::mirroring::mojom::blink::SessionObserver> observer, ::mojo::PendingRemote<::mirroring::mojom::blink::ResourceProvider> resource_provider, ::mojo::PendingRemote<::mirroring::mojom::blink::CastMessageChannel> outbound_channel, ::mojo::PendingReceiver<::mirroring::mojom::blink::CastMessageChannel> inbound_channel) final; |
| |
| private: |
| mojo::MessageReceiverWithResponder* receiver_; |
| }; |
| class MirroringServiceStubDispatch { |
| public: |
| static bool Accept(MirroringService* impl, mojo::Message* message); |
| static bool AcceptWithResponder( |
| MirroringService* impl, |
| mojo::Message* message, |
| std::unique_ptr<mojo::MessageReceiverWithStatus> responder); |
| }; |
| |
| template <typename ImplRefTraits = |
| mojo::RawPtrImplRefTraits<MirroringService>> |
| class MirroringServiceStub |
| : public mojo::MessageReceiverWithResponderStatus { |
| public: |
| using ImplPointerType = typename ImplRefTraits::PointerType; |
| |
| MirroringServiceStub() = default; |
| ~MirroringServiceStub() 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 MirroringServiceStubDispatch::Accept( |
| ImplRefTraits::GetRawPointer(&sink_), message); |
| } |
| |
| bool AcceptWithResponder( |
| mojo::Message* message, |
| std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { |
| if (ImplRefTraits::IsNull(sink_)) |
| return false; |
| return MirroringServiceStubDispatch::AcceptWithResponder( |
| ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder)); |
| } |
| |
| private: |
| ImplPointerType sink_; |
| }; |
| class MirroringServiceRequestValidator : public mojo::MessageReceiver { |
| public: |
| bool Accept(mojo::Message* message) override; |
| }; |
| |
| |
| |
| |
| |
| } // namespace blink |
| } // namespace mojom |
| } // namespace mirroring |
| |
| namespace mojo { |
| |
| } // namespace mojo |
| |
| #endif // COMPONENTS_MIRRORING_MOJOM_MIRRORING_SERVICE_MOJOM_BLINK_H_ |
| |
| /* Metadata comment |
| eyJtZXRhIjogW3siZW5kIjogMjE2NSwgImJlZ2luIjogMjE0OCwgImVkZ2UiOiAiJS9reXRoZS9l |
| ZGdlL2dlbmVyYXRlcyIsICJ0eXBlIjogImFuY2hvcl9kZWZpbmVzIiwgInZuYW1lIjogeyJjb3Jw |
| dXMiOiAiY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9jaHJvbWl1bS9zcmMiLCAibGFuZ3VhZ2Ui |
| OiAibW9qb20iLCAic2lnbmF0dXJlIjogIi5rTWlycm9yaW5nU2FuZGJveCJ9fSwgeyJlbmQiOiAy |
| NDg0LCAiYmVnaW4iOiAyNDY4LCAiZWRnZSI6ICIlL2t5dGhlL2VkZ2UvZ2VuZXJhdGVzIiwgInR5 |
| cGUiOiAiYW5jaG9yX2RlZmluZXMiLCAidm5hbWUiOiB7ImNvcnB1cyI6ICJjaHJvbWl1bS5nb29n |
| bGVzb3VyY2UuY29tL2Nocm9taXVtL3NyYyIsICJsYW5ndWFnZSI6ICJtb2pvbSIsICJzaWduYXR1 |
| cmUiOiAibWlycm9yaW5nLm1vam9tLk1pcnJvcmluZ1NlcnZpY2UifX0sIHsiZW5kIjogMzc0NCwg |
| ImJlZ2luIjogMzczOSwgImVkZ2UiOiAiJS9reXRoZS9lZGdlL2dlbmVyYXRlcyIsICJ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