| Index: mojo/common/url_type_converters.cc
|
| diff --git a/mojo/common/url_type_converters.cc b/mojo/common/url_type_converters.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..680252724a90bb14f7f23111a86856d5710ccdff
|
| --- /dev/null
|
| +++ b/mojo/common/url_type_converters.cc
|
| @@ -0,0 +1,19 @@
|
| +// 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.
|
| +
|
| +#include "mojo/common/url_type_converters.h"
|
| +
|
| +#include "url/gurl.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +String TypeConverter<String, GURL>::Convert(const GURL& input) {
|
| + return String(input.spec());
|
| +}
|
| +
|
| +GURL TypeConverter<GURL, String>::Convert(const String& input) {
|
| + return GURL(input.get());
|
| +}
|
| +
|
| +} // namespace mojo
|
|
|