blob: 079e266d5eee018b12750628cb139791e5b0e8bb [file] [log] [blame]
// content/common/gin_java_bridge.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_COMMON_GIN_JAVA_BRIDGE_MOJOM_SHARED_H_
#define CONTENT_COMMON_GIN_JAVA_BRIDGE_MOJOM_SHARED_H_
#include <stdint.h>
#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "content/common/gin_java_bridge.mojom-shared-internal.h"
#include "components/origin_matcher/origin_matcher.mojom-shared.h"
#include "mojo/public/mojom/base/values.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "content/common/gin_java_bridge.mojom-data-view.h"
#include "base/component_export.h"
#ifdef KYTHE_IS_RUNNING
#pragma kythe_inline_metadata "Metadata comment"
#endif
namespace std {
template <>
struct hash<::content::mojom::GinJavaBridgeError>
: public mojo::internal::EnumHashImpl<::content::mojom::GinJavaBridgeError> {};
} // namespace std
namespace mojo {
namespace internal {
template <typename MaybeConstUserType>
struct Serializer<::content::mojom::GinJavaBridgeError, MaybeConstUserType> {
using UserType = typename std::remove_const<MaybeConstUserType>::type;
using Traits = EnumTraits<::content::mojom::GinJavaBridgeError, UserType>;
static void Serialize(UserType input, int32_t* output) {
*output = static_cast<int32_t>(Traits::ToMojom(input));
}
static bool Deserialize(int32_t input, UserType* output) {
return Traits::FromMojom(::mojo::internal::ToKnownEnumValueHelper(
static_cast<::content::mojom::GinJavaBridgeError>(input)), output);
}
};
} // namespace internal
} // namespace mojo
namespace content::mojom {
} // content::mojom
// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.
namespace perfetto {
template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_CONTENT_EXPORT) TraceFormatTraits<::content::mojom::GinJavaBridgeError> {
static void WriteIntoTrace(perfetto::TracedValue context, ::content::mojom::GinJavaBridgeError value);
};
} // namespace perfetto
#endif // CONTENT_COMMON_GIN_JAVA_BRIDGE_MOJOM_SHARED_H_
/* Metadata comment
eyJ0eXBlIjogImt5dGhlMCIsICJtZXRhIjogW119
*/