Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Side by Side Diff: content/common/url_request_struct_traits.h

Issue 2646343007: [Mojo-Loading] Implement URLLoader::SetPriority (Closed)
Patch Set: fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/url_request.typemap ('k') | content/common/url_request_struct_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_URL_REQUEST_STRUCT_TRAITS_H_
6 #define CONTENT_COMMON_URL_REQUEST_STRUCT_TRAITS_H_
7
8 #include "content/common/url_loader.mojom.h"
9 #include "mojo/public/cpp/bindings/enum_traits.h"
10 #include "net/base/request_priority.h"
11
12 namespace mojo {
13
14 template <>
15 struct EnumTraits<content::mojom::RequestPriority, net::RequestPriority> {
16 static content::mojom::RequestPriority ToMojom(net::RequestPriority priority);
17 static bool FromMojom(content::mojom::RequestPriority in,
18 net::RequestPriority* out);
19 };
20
21 } // namespace mojo
22
23 #endif // CONTENT_COMMON_URL_REQUEST_STRUCT_TRAITS_H_
OLDNEW
« no previous file with comments | « content/common/url_request.typemap ('k') | content/common/url_request_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698