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

Unified Diff: content/common/url_request_struct_traits.h

Issue 2646343007: [Mojo-Loading] Implement URLLoader::SetPriority (Closed)
Patch Set: fix Created 3 years, 11 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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