blob: 01c80a8d81951d9ad133506f279011b1cdd7cb50 [file] [log] [blame]
// Copyright 2015 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_PROXY_RESOLVER_PUBLIC_CPP_MOJO_HOST_STRUCT_TRAITS_H_
#define SERVICES_PROXY_RESOLVER_PUBLIC_CPP_MOJO_HOST_STRUCT_TRAITS_H_
#include "base/strings/string_piece.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "net/proxy_resolution/proxy_resolve_dns_operation.h"
#include "services/proxy_resolver/public/mojom/proxy_resolver.mojom.h"
namespace mojo {
template <>
struct EnumTraits<proxy_resolver::mojom::HostResolveOperation,
net::ProxyResolveDnsOperation> {
static proxy_resolver::mojom::HostResolveOperation ToMojom(
net::ProxyResolveDnsOperation input);
static bool FromMojom(proxy_resolver::mojom::HostResolveOperation input,
net::ProxyResolveDnsOperation* output);
};
} // namespace mojo
#endif // SERVICES_PROXY_RESOLVER_PUBLIC_CPP_MOJO_HOST_STRUCT_TRAITS_H_