blob: 0326632573dbf73cec101543c5a5a6d6b3cd2ca6 [file] [log] [blame]
// Copyright 2017 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 CONTENT_COMMON_URL_REQUEST_STRUCT_TRAITS_H_
#define CONTENT_COMMON_URL_REQUEST_STRUCT_TRAITS_H_
#include "content/public/common/url_loader.mojom.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "net/base/request_priority.h"
namespace mojo {
template <>
struct EnumTraits<content::mojom::RequestPriority, net::RequestPriority> {
static content::mojom::RequestPriority ToMojom(net::RequestPriority priority);
static bool FromMojom(content::mojom::RequestPriority in,
net::RequestPriority* out);
};
} // namespace mojo
#endif // CONTENT_COMMON_URL_REQUEST_STRUCT_TRAITS_H_