| // 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_CHROME_CLEANER_PUBLIC_INTERFACES_CHROME_PROMPT_MOJOM_H_ |
| #define COMPONENTS_CHROME_CLEANER_PUBLIC_INTERFACES_CHROME_PROMPT_MOJOM_H_ |
| |
| #include <stdint.h> |
| |
| #include <limits> |
| #include <type_traits> |
| #include <utility> |
| |
| #include "base/callback.h" |
| #include "base/macros.h" |
| #include "base/optional.h" |
| |
| #include "mojo/public/cpp/bindings/mojo_buildflags.h" |
| #if BUILDFLAG(MOJO_TRACE_ENABLED) |
| #include "base/trace_event/trace_event.h" |
| #endif |
| #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 "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom-shared.h" |
| #include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom-forward.h" |
| #include <string> |
| #include <vector> |
| |
| #include "mojo/public/cpp/bindings/associated_interface_ptr.h" |
| #include "mojo/public/cpp/bindings/associated_interface_ptr_info.h" |
| #include "mojo/public/cpp/bindings/associated_interface_request.h" |
| #include "mojo/public/cpp/bindings/interface_ptr.h" |
| #include "mojo/public/cpp/bindings/interface_request.h" |
| #include "mojo/public/cpp/bindings/lib/control_message_handler.h" |
| #include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h" |
| #include "mojo/public/cpp/bindings/thread_safe_interface_ptr.h" |
| |
| |
| #include "mojo/public/cpp/bindings/lib/native_enum_serialization.h" |
| #include "mojo/public/cpp/bindings/lib/native_struct_serialization.h" |
| #include "base/files/file_path.h" |
| #include "base/strings/string16.h" |
| |
| #ifdef KYTHE_IS_RUNNING |
| #pragma kythe_inline_metadata "Metadata comment" |
| #endif |
| |
| |
| namespace chrome_cleaner { |
| namespace mojom { |
| |
| class ChromePromptProxy; |
| |
| template <typename ImplRefTraits> |
| class ChromePromptStub; |
| |
| class ChromePromptRequestValidator; |
| class ChromePromptResponseValidator; |
| |
| |
| // @generated_from: chrome_cleaner.mojom.ChromePrompt |
| class ChromePrompt |
| : public ChromePromptInterfaceBase { |
| public: |
| static const char Name_[]; |
| static constexpr uint32_t Version_ = 3; |
| static constexpr bool PassesAssociatedKinds_ = false; |
| static constexpr bool HasSyncMethods_ = false; |
| |
| using Base_ = ChromePromptInterfaceBase; |
| using Proxy_ = ChromePromptProxy; |
| |
| template <typename ImplRefTraits> |
| using Stub_ = ChromePromptStub<ImplRefTraits>; |
| |
| using RequestValidator_ = ChromePromptRequestValidator; |
| using ResponseValidator_ = ChromePromptResponseValidator; |
| enum MethodMinVersions : uint32_t { |
| kPromptUserMinVersion = 0, |
| kDisableExtensionsMinVersion = 3, |
| }; |
| virtual ~ChromePrompt() {} |
| |
| |
| using PromptUserCallback = base::OnceCallback<void(PromptAcceptance)>; |
| |
| // @generated_from: chrome_cleaner.mojom.ChromePrompt.PromptUser |
| virtual void PromptUser(const std::vector<base::FilePath>& files_to_delete, const base::Optional<std::vector<base::string16>>& registry_keys, const base::Optional<std::vector<base::string16>>& extension_ids, PromptUserCallback callback) = 0; |
| |
| |
| using DisableExtensionsCallback = base::OnceCallback<void(bool)>; |
| |
| // @generated_from: chrome_cleaner.mojom.ChromePrompt.DisableExtensions |
| virtual void DisableExtensions(const std::vector<base::string16>& extension_ids, DisableExtensionsCallback callback) = 0; |
| }; |
| |
| class ChromePromptProxy |
| : public ChromePrompt { |
| public: |
| using InterfaceType = ChromePrompt; |
| |
| explicit ChromePromptProxy(mojo::MessageReceiverWithResponder* receiver); |
| void PromptUser(const std::vector<base::FilePath>& files_to_delete, const base::Optional<std::vector<base::string16>>& registry_keys, const base::Optional<std::vector<base::string16>>& extension_ids, PromptUserCallback callback) final; |
| void DisableExtensions(const std::vector<base::string16>& extension_ids, DisableExtensionsCallback callback) final; |
| |
| private: |
| mojo::MessageReceiverWithResponder* receiver_; |
| }; |
| class ChromePromptStubDispatch { |
| public: |
| static bool Accept(ChromePrompt* impl, mojo::Message* message); |
| static bool AcceptWithResponder( |
| ChromePrompt* impl, |
| mojo::Message* message, |
| std::unique_ptr<mojo::MessageReceiverWithStatus> responder); |
| }; |
| |
| template <typename ImplRefTraits = |
| mojo::RawPtrImplRefTraits<ChromePrompt>> |
| class ChromePromptStub |
| : public mojo::MessageReceiverWithResponderStatus { |
| public: |
| using ImplPointerType = typename ImplRefTraits::PointerType; |
| |
| ChromePromptStub() {} |
| ~ChromePromptStub() override {} |
| |
| 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 ChromePromptStubDispatch::Accept( |
| ImplRefTraits::GetRawPointer(&sink_), message); |
| } |
| |
| bool AcceptWithResponder( |
| mojo::Message* message, |
| std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { |
| if (ImplRefTraits::IsNull(sink_)) |
| return false; |
| return ChromePromptStubDispatch::AcceptWithResponder( |
| ImplRefTraits::GetRawPointer(&sink_), message, std::move(responder)); |
| } |
| |
| private: |
| ImplPointerType sink_; |
| }; |
| class ChromePromptRequestValidator : public mojo::MessageReceiver { |
| public: |
| bool Accept(mojo::Message* message) override; |
| }; |
| class ChromePromptResponseValidator : public mojo::MessageReceiver { |
| public: |
| bool Accept(mojo::Message* message) override; |
| }; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| // @generated_from: chrome_cleaner.mojom.FilePath |
| class FilePath { |
| public: |
| template <typename T> |
| using EnableIfSame = std::enable_if_t<std::is_same<FilePath, T>::value>; |
| using DataView = FilePathDataView; |
| using Data_ = internal::FilePath_Data; |
| |
| template <typename... Args> |
| static FilePathPtr New(Args&&... args) { |
| return FilePathPtr( |
| base::in_place, std::forward<Args>(args)...); |
| } |
| |
| template <typename U> |
| static FilePathPtr From(const U& u) { |
| return mojo::TypeConverter<FilePathPtr, U>::Convert(u); |
| } |
| |
| template <typename U> |
| U To() const { |
| return mojo::TypeConverter<U, FilePath>::Convert(*this); |
| } |
| |
| |
| FilePath(); |
| |
| explicit FilePath( |
| const std::vector<uint16_t>& value); |
| |
| ~FilePath(); |
| |
| // Clone() is a template so it is only instantiated if it is used. Thus, the |
| // bindings generator does not need to know whether Clone() or copy |
| // constructor/assignment are available for members. |
| template <typename StructPtrType = FilePathPtr> |
| FilePathPtr Clone() const; |
| |
| // Equals() is a template so it is only instantiated if it is used. Thus, the |
| // bindings generator does not need to know whether Equals() or == operator |
| // are available for members. |
| template <typename T, FilePath::EnableIfSame<T>* = nullptr> |
| bool Equals(const T& other) const; |
| |
| template <typename UserType> |
| static std::vector<uint8_t> Serialize(UserType* input) { |
| return mojo::internal::SerializeImpl< |
| FilePath::DataView, std::vector<uint8_t>>(input); |
| } |
| |
| template <typename UserType> |
| static mojo::Message SerializeAsMessage(UserType* input) { |
| return mojo::internal::SerializeAsMessageImpl< |
| FilePath::DataView>(input); |
| } |
| |
| // The returned Message is serialized only if the message is moved |
| // cross-process or cross-language. Otherwise if the message is Deserialized |
| // as the same UserType |input| will just be moved to |output| in |
| // DeserializeFromMessage. |
| template <typename UserType> |
| static mojo::Message WrapAsMessage(UserType input) { |
| return mojo::Message(std::make_unique< |
| internal::FilePath_UnserializedMessageContext< |
| UserType, FilePath::DataView>>(0, 0, std::move(input))); |
| } |
| |
| template <typename UserType> |
| static bool Deserialize(const void* data, |
| size_t data_num_bytes, |
| UserType* output) { |
| return mojo::internal::DeserializeImpl<FilePath::DataView>( |
| data, data_num_bytes, std::vector<mojo::ScopedHandle>(), output, Validate); |
| } |
| |
| template <typename UserType> |
| static bool Deserialize(const std::vector<uint8_t>& input, |
| UserType* output) { |
| return FilePath::Deserialize( |
| input.size() == 0 ? nullptr : &input.front(), input.size(), output); |
| } |
| |
| template <typename UserType> |
| static bool DeserializeFromMessage(mojo::Message input, |
| UserType* output) { |
| auto context = input.TakeUnserializedContext< |
| internal::FilePath_UnserializedMessageContext< |
| UserType, FilePath::DataView>>(); |
| if (context) { |
| *output = std::move(context->TakeData()); |
| return true; |
| } |
| input.SerializeIfNecessary(); |
| return mojo::internal::DeserializeImpl<FilePath::DataView>( |
| input.payload(), input.payload_num_bytes(), |
| std::move(*input.mutable_handles()), output, Validate); |
| } |
| |
| |
| // @generated_from: chrome_cleaner.mojom.FilePath.value |
| std::vector<uint16_t> value; |
| |
| private: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| }; |
| |
| // The comparison operators are templates, so they are only instantiated if they |
| // are used. Thus, the bindings generator does not need to know whether |
| // comparison operators are available for members. |
| template <typename T, FilePath::EnableIfSame<T>* = nullptr> |
| bool operator<(const T& lhs, const T& rhs); |
| |
| template <typename T, FilePath::EnableIfSame<T>* = nullptr> |
| bool operator<=(const T& lhs, const T& rhs) { |
| return !(rhs < lhs); |
| } |
| |
| template <typename T, FilePath::EnableIfSame<T>* = nullptr> |
| bool operator>(const T& lhs, const T& rhs) { |
| return rhs < lhs; |
| } |
| |
| template <typename T, FilePath::EnableIfSame<T>* = nullptr> |
| bool operator>=(const T& lhs, const T& rhs) { |
| return !(lhs < rhs); |
| } |
| |
| |
| |
| |
| |
| // @generated_from: chrome_cleaner.mojom.RegistryKey |
| class RegistryKey { |
| public: |
| template <typename T> |
| using EnableIfSame = std::enable_if_t<std::is_same<RegistryKey, T>::value>; |
| using DataView = RegistryKeyDataView; |
| using Data_ = internal::RegistryKey_Data; |
| |
| template <typename... Args> |
| static RegistryKeyPtr New(Args&&... args) { |
| return RegistryKeyPtr( |
| base::in_place, std::forward<Args>(args)...); |
| } |
| |
| template <typename U> |
| static RegistryKeyPtr From(const U& u) { |
| return mojo::TypeConverter<RegistryKeyPtr, U>::Convert(u); |
| } |
| |
| template <typename U> |
| U To() const { |
| return mojo::TypeConverter<U, RegistryKey>::Convert(*this); |
| } |
| |
| |
| RegistryKey(); |
| |
| explicit RegistryKey( |
| const std::vector<uint16_t>& value); |
| |
| ~RegistryKey(); |
| |
| // Clone() is a template so it is only instantiated if it is used. Thus, the |
| // bindings generator does not need to know whether Clone() or copy |
| // constructor/assignment are available for members. |
| template <typename StructPtrType = RegistryKeyPtr> |
| RegistryKeyPtr Clone() const; |
| |
| // Equals() is a template so it is only instantiated if it is used. Thus, the |
| // bindings generator does not need to know whether Equals() or == operator |
| // are available for members. |
| template <typename T, RegistryKey::EnableIfSame<T>* = nullptr> |
| bool Equals(const T& other) const; |
| |
| template <typename UserType> |
| static std::vector<uint8_t> Serialize(UserType* input) { |
| return mojo::internal::SerializeImpl< |
| RegistryKey::DataView, std::vector<uint8_t>>(input); |
| } |
| |
| template <typename UserType> |
| static mojo::Message SerializeAsMessage(UserType* input) { |
| return mojo::internal::SerializeAsMessageImpl< |
| RegistryKey::DataView>(input); |
| } |
| |
| // The returned Message is serialized only if the message is moved |
| // cross-process or cross-language. Otherwise if the message is Deserialized |
| // as the same UserType |input| will just be moved to |output| in |
| // DeserializeFromMessage. |
| template <typename UserType> |
| static mojo::Message WrapAsMessage(UserType input) { |
| return mojo::Message(std::make_unique< |
| internal::RegistryKey_UnserializedMessageContext< |
| UserType, RegistryKey::DataView>>(0, 0, std::move(input))); |
| } |
| |
| template <typename UserType> |
| static bool Deserialize(const void* data, |
| size_t data_num_bytes, |
| UserType* output) { |
| return mojo::internal::DeserializeImpl<RegistryKey::DataView>( |
| data, data_num_bytes, std::vector<mojo::ScopedHandle>(), output, Validate); |
| } |
| |
| template <typename UserType> |
| static bool Deserialize(const std::vector<uint8_t>& input, |
| UserType* output) { |
| return RegistryKey::Deserialize( |
| input.size() == 0 ? nullptr : &input.front(), input.size(), output); |
| } |
| |
| template <typename UserType> |
| static bool DeserializeFromMessage(mojo::Message input, |
| UserType* output) { |
| auto context = input.TakeUnserializedContext< |
| internal::RegistryKey_UnserializedMessageContext< |
| UserType, RegistryKey::DataView>>(); |
| if (context) { |
| *output = std::move(context->TakeData()); |
| return true; |
| } |
| input.SerializeIfNecessary(); |
| return mojo::internal::DeserializeImpl<RegistryKey::DataView>( |
| input.payload(), input.payload_num_bytes(), |
| std::move(*input.mutable_handles()), output, Validate); |
| } |
| |
| |
| // @generated_from: chrome_cleaner.mojom.RegistryKey.value |
| std::vector<uint16_t> value; |
| |
| private: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| }; |
| |
| // The comparison operators are templates, so they are only instantiated if they |
| // are used. Thus, the bindings generator does not need to know whether |
| // comparison operators are available for members. |
| template <typename T, RegistryKey::EnableIfSame<T>* = nullptr> |
| bool operator<(const T& lhs, const T& rhs); |
| |
| template <typename T, RegistryKey::EnableIfSame<T>* = nullptr> |
| bool operator<=(const T& lhs, const T& rhs) { |
| return !(rhs < lhs); |
| } |
| |
| template <typename T, RegistryKey::EnableIfSame<T>* = nullptr> |
| bool operator>(const T& lhs, const T& rhs) { |
| return rhs < lhs; |
| } |
| |
| template <typename T, RegistryKey::EnableIfSame<T>* = nullptr> |
| bool operator>=(const T& lhs, const T& rhs) { |
| return !(lhs < rhs); |
| } |
| |
| |
| |
| |
| |
| // @generated_from: chrome_cleaner.mojom.ExtensionId |
| class ExtensionId { |
| public: |
| template <typename T> |
| using EnableIfSame = std::enable_if_t<std::is_same<ExtensionId, T>::value>; |
| using DataView = ExtensionIdDataView; |
| using Data_ = internal::ExtensionId_Data; |
| |
| template <typename... Args> |
| static ExtensionIdPtr New(Args&&... args) { |
| return ExtensionIdPtr( |
| base::in_place, std::forward<Args>(args)...); |
| } |
| |
| template <typename U> |
| static ExtensionIdPtr From(const U& u) { |
| return mojo::TypeConverter<ExtensionIdPtr, U>::Convert(u); |
| } |
| |
| template <typename U> |
| U To() const { |
| return mojo::TypeConverter<U, ExtensionId>::Convert(*this); |
| } |
| |
| |
| ExtensionId(); |
| |
| explicit ExtensionId( |
| const std::vector<uint16_t>& value); |
| |
| ~ExtensionId(); |
| |
| // Clone() is a template so it is only instantiated if it is used. Thus, the |
| // bindings generator does not need to know whether Clone() or copy |
| // constructor/assignment are available for members. |
| template <typename StructPtrType = ExtensionIdPtr> |
| ExtensionIdPtr Clone() const; |
| |
| // Equals() is a template so it is only instantiated if it is used. Thus, the |
| // bindings generator does not need to know whether Equals() or == operator |
| // are available for members. |
| template <typename T, ExtensionId::EnableIfSame<T>* = nullptr> |
| bool Equals(const T& other) const; |
| |
| template <typename UserType> |
| static std::vector<uint8_t> Serialize(UserType* input) { |
| return mojo::internal::SerializeImpl< |
| ExtensionId::DataView, std::vector<uint8_t>>(input); |
| } |
| |
| template <typename UserType> |
| static mojo::Message SerializeAsMessage(UserType* input) { |
| return mojo::internal::SerializeAsMessageImpl< |
| ExtensionId::DataView>(input); |
| } |
| |
| // The returned Message is serialized only if the message is moved |
| // cross-process or cross-language. Otherwise if the message is Deserialized |
| // as the same UserType |input| will just be moved to |output| in |
| // DeserializeFromMessage. |
| template <typename UserType> |
| static mojo::Message WrapAsMessage(UserType input) { |
| return mojo::Message(std::make_unique< |
| internal::ExtensionId_UnserializedMessageContext< |
| UserType, ExtensionId::DataView>>(0, 0, std::move(input))); |
| } |
| |
| template <typename UserType> |
| static bool Deserialize(const void* data, |
| size_t data_num_bytes, |
| UserType* output) { |
| return mojo::internal::DeserializeImpl<ExtensionId::DataView>( |
| data, data_num_bytes, std::vector<mojo::ScopedHandle>(), output, Validate); |
| } |
| |
| template <typename UserType> |
| static bool Deserialize(const std::vector<uint8_t>& input, |
| UserType* output) { |
| return ExtensionId::Deserialize( |
| input.size() == 0 ? nullptr : &input.front(), input.size(), output); |
| } |
| |
| template <typename UserType> |
| static bool DeserializeFromMessage(mojo::Message input, |
| UserType* output) { |
| auto context = input.TakeUnserializedContext< |
| internal::ExtensionId_UnserializedMessageContext< |
| UserType, ExtensionId::DataView>>(); |
| if (context) { |
| *output = std::move(context->TakeData()); |
| return true; |
| } |
| input.SerializeIfNecessary(); |
| return mojo::internal::DeserializeImpl<ExtensionId::DataView>( |
| input.payload(), input.payload_num_bytes(), |
| std::move(*input.mutable_handles()), output, Validate); |
| } |
| |
| |
| // @generated_from: chrome_cleaner.mojom.ExtensionId.value |
| std::vector<uint16_t> value; |
| |
| private: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| }; |
| |
| // The comparison operators are templates, so they are only instantiated if they |
| // are used. Thus, the bindings generator does not need to know whether |
| // comparison operators are available for members. |
| template <typename T, ExtensionId::EnableIfSame<T>* = nullptr> |
| bool operator<(const T& lhs, const T& rhs); |
| |
| template <typename T, ExtensionId::EnableIfSame<T>* = nullptr> |
| bool operator<=(const T& lhs, const T& rhs) { |
| return !(rhs < lhs); |
| } |
| |
| template <typename T, ExtensionId::EnableIfSame<T>* = nullptr> |
| bool operator>(const T& lhs, const T& rhs) { |
| return rhs < lhs; |
| } |
| |
| template <typename T, ExtensionId::EnableIfSame<T>* = nullptr> |
| bool operator>=(const T& lhs, const T& rhs) { |
| return !(lhs < rhs); |
| } |
| |
| template <typename StructPtrType> |
| FilePathPtr FilePath::Clone() const { |
| return New( |
| mojo::Clone(value) |
| ); |
| } |
| |
| template <typename T, FilePath::EnableIfSame<T>*> |
| bool FilePath::Equals(const T& other_struct) const { |
| if (!mojo::Equals(this->value, other_struct.value)) |
| return false; |
| return true; |
| } |
| |
| template <typename T, FilePath::EnableIfSame<T>*> |
| bool operator<(const T& lhs, const T& rhs) { |
| if (lhs.value < rhs.value) |
| return true; |
| if (rhs.value < lhs.value) |
| return false; |
| return false; |
| } |
| template <typename StructPtrType> |
| RegistryKeyPtr RegistryKey::Clone() const { |
| return New( |
| mojo::Clone(value) |
| ); |
| } |
| |
| template <typename T, RegistryKey::EnableIfSame<T>*> |
| bool RegistryKey::Equals(const T& other_struct) const { |
| if (!mojo::Equals(this->value, other_struct.value)) |
| return false; |
| return true; |
| } |
| |
| template <typename T, RegistryKey::EnableIfSame<T>*> |
| bool operator<(const T& lhs, const T& rhs) { |
| if (lhs.value < rhs.value) |
| return true; |
| if (rhs.value < lhs.value) |
| return false; |
| return false; |
| } |
| template <typename StructPtrType> |
| ExtensionIdPtr ExtensionId::Clone() const { |
| return New( |
| mojo::Clone(value) |
| ); |
| } |
| |
| template <typename T, ExtensionId::EnableIfSame<T>*> |
| bool ExtensionId::Equals(const T& other_struct) const { |
| if (!mojo::Equals(this->value, other_struct.value)) |
| return false; |
| return true; |
| } |
| |
| template <typename T, ExtensionId::EnableIfSame<T>*> |
| bool operator<(const T& lhs, const T& rhs) { |
| if (lhs.value < rhs.value) |
| return true; |
| if (rhs.value < lhs.value) |
| return false; |
| return false; |
| } |
| |
| |
| } // namespace mojom |
| } // namespace chrome_cleaner |
| |
| namespace mojo { |
| |
| |
| template <> |
| struct StructTraits<::chrome_cleaner::mojom::FilePath::DataView, |
| ::chrome_cleaner::mojom::FilePathPtr> { |
| static bool IsNull(const ::chrome_cleaner::mojom::FilePathPtr& input) { return !input; } |
| static void SetToNull(::chrome_cleaner::mojom::FilePathPtr* output) { output->reset(); } |
| |
| static const decltype(::chrome_cleaner::mojom::FilePath::value)& value( |
| const ::chrome_cleaner::mojom::FilePathPtr& input) { |
| return input->value; |
| } |
| |
| static bool Read(::chrome_cleaner::mojom::FilePath::DataView input, ::chrome_cleaner::mojom::FilePathPtr* output); |
| }; |
| |
| |
| template <> |
| struct StructTraits<::chrome_cleaner::mojom::RegistryKey::DataView, |
| ::chrome_cleaner::mojom::RegistryKeyPtr> { |
| static bool IsNull(const ::chrome_cleaner::mojom::RegistryKeyPtr& input) { return !input; } |
| static void SetToNull(::chrome_cleaner::mojom::RegistryKeyPtr* output) { output->reset(); } |
| |
| static const decltype(::chrome_cleaner::mojom::RegistryKey::value)& value( |
| const ::chrome_cleaner::mojom::RegistryKeyPtr& input) { |
| return input->value; |
| } |
| |
| static bool Read(::chrome_cleaner::mojom::RegistryKey::DataView input, ::chrome_cleaner::mojom::RegistryKeyPtr* output); |
| }; |
| |
| |
| template <> |
| struct StructTraits<::chrome_cleaner::mojom::ExtensionId::DataView, |
| ::chrome_cleaner::mojom::ExtensionIdPtr> { |
| static bool IsNull(const ::chrome_cleaner::mojom::ExtensionIdPtr& input) { return !input; } |
| static void SetToNull(::chrome_cleaner::mojom::ExtensionIdPtr* output) { output->reset(); } |
| |
| static const decltype(::chrome_cleaner::mojom::ExtensionId::value)& value( |
| const ::chrome_cleaner::mojom::ExtensionIdPtr& input) { |
| return input->value; |
| } |
| |
| static bool Read(::chrome_cleaner::mojom::ExtensionId::DataView input, ::chrome_cleaner::mojom::ExtensionIdPtr* output); |
| }; |
| |
| } // namespace mojo |
| |
| #endif // COMPONENTS_CHROME_CLEANER_PUBLIC_INTERFACES_CHROME_PROMPT_MOJOM_H_
|
| /* Metadata comment
|
| eyJtZXRhIjogW3siZW5kIjogMjIwMiwgImJlZ2luIjogMjE5MCwgImVkZ2UiOiAiJS9reXRoZS9l
|
| ZGdlL2dlbmVyYXRlcyIsICJ0eXBlIjogImFuY2hvcl9kZWZpbmVzIiwgInZuYW1lIjogeyJjb3Jw
|
| dXMiOiAiY2hyb21pdW0uZ29vZ2xlc291cmNlLmNvbS9jaHJvbWl1bS9zcmMiLCAibGFuZ3VhZ2Ui
|
| OiAibW9qb20iLCAic2lnbmF0dXJlIjogImNocm9tZV9jbGVhbmVyLm1vam9tLkNocm9tZVByb21w
|
| dCJ9fSwgeyJlbmQiOiAzMDIzLCAiYmVnaW4iOiAzMDEzLCAiZWRnZSI6ICIlL2t5dGhlL2VkZ2Uv
|
| Z2VuZXJhdGVzIiwgInR5cGUiOiAiYW5jaG9yX2RlZmluZXMiLCAidm5hbWUiOiB7ImNvcnB1cyI6
|
| ICJjaHJvbWl1bS5nb29nbGVzb3VyY2UuY29tL2Nocm9taXVtL3NyYyIsICJsYW5ndWFnZSI6ICJt
|
| b2pvbSIsICJzaWduYXR1cmUiOiAiY2hyb21lX2NsZWFuZXIub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