blob: aa93da5df494fe1ad68c88fb62b7fb3339d2a8b0 [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_NETWORK_PUBLIC_CPP_DEFAULT_CREDENTIALS_MOJOM_TRAITS_H_
#define SERVICES_NETWORK_PUBLIC_CPP_DEFAULT_CREDENTIALS_MOJOM_TRAITS_H_
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "net/http/http_auth_preferences.h"
#include "services/network/public/mojom/default_credentials.mojom.h"
namespace mojo {
template <>
struct EnumTraits<network::mojom::DefaultCredentials,
net::HttpAuthPreferences::DefaultCredentials> {
static network::mojom::DefaultCredentials ToMojom(
net::HttpAuthPreferences::DefaultCredentials input);
static bool FromMojom(network::mojom::DefaultCredentials input,
net::HttpAuthPreferences::DefaultCredentials* output);
};
} // namespace mojo
#endif // SERVICES_NETWORK_PUBLIC_CPP_DEFAULT_CREDENTIALS_MOJOM_TRAITS_H_