blob: 94109da05f7c6ab60d72f1f8e68a68345df92934 [file] [log] [blame]
// 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/converters/network/network_type_converters.h"
namespace mojo {
// static
URLRequestPtr TypeConverter<URLRequestPtr, std::string>::Convert(
const std::string& input) {
URLRequestPtr result(URLRequest::New());
result->url = input;
return result.Pass();
}
} // namespace mojo