Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / mojo / common / url_type_converters.h
blob04390830795ef71c2b1bf5b25940a5604f7cd33f
1 // Copyright 2015 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.
5 #ifndef MOJO_COMMON_URL_TYPE_CONVERTERS_H_
6 #define MOJO_COMMON_URL_TYPE_CONVERTERS_H_
8 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h"
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/type_converter.h"
11 class GURL;
13 namespace mojo {
15 template <>
16 struct TypeConverter<String, GURL> {
17 static String Convert(const GURL& input);
20 template <>
21 struct TypeConverter<GURL, String> {
22 static GURL Convert(const String& input);
25 } // namespace mojo
27 #endif // MOJO_COMMON_URL_TYPE_CONVERTERS_H_