Index: mojo/converters/network/network_type_converters.h |
diff --git a/mojo/converters/network/network_type_converters.h b/mojo/converters/network/network_type_converters.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4092cd748a73e9e83b2d984fa2b6eb52ea478f6c |
--- /dev/null |
+++ b/mojo/converters/network/network_type_converters.h |
@@ -0,0 +1,21 @@ |
+// Copyright 2015 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 MOJO_CONVERTERS_NETWORK_NETWORK_TYPE_CONVERTERS_H_ |
+#define MOJO_CONVERTERS_NETWORK_NETWORK_TYPE_CONVERTERS_H_ |
+ |
+#include <string> |
+ |
+#include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
+ |
+namespace mojo { |
+ |
+template <> |
+struct TypeConverter<URLRequestPtr, std::string> { |
+ static URLRequestPtr Convert(const std::string& input); |
+}; |
+ |
+} // namespace mojo |
+ |
+#endif // MOJO_CONVERTERS_NETWORK_NETWORK_TYPE_CONVERTERS_H_ |