| Index: content/common/url_request_struct_traits.h
|
| diff --git a/content/common/url_request_struct_traits.h b/content/common/url_request_struct_traits.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3aecba8a5455eb91c2706e7d707f369d1e5935fb
|
| --- /dev/null
|
| +++ b/content/common/url_request_struct_traits.h
|
| @@ -0,0 +1,23 @@
|
| +// 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/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_
|
|
|