summaryrefslogtreecommitdiffstats
path: root/mojo/converters/network/network_type_converters.cc
blob: 1453c5002146940841585b29bb2d72dea7cfdaad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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;
}

}  // namespace mojo