| Index: mojo/converters/base/base_type_converters.cc
|
| diff --git a/mojo/common/common_type_converters.cc b/mojo/converters/base/base_type_converters.cc
|
| similarity index 61%
|
| rename from mojo/common/common_type_converters.cc
|
| rename to mojo/converters/base/base_type_converters.cc
|
| index b656acfc445aac9fb7cef4e1bee8ac88e3d1c097..d4649ce8a5867d367a676e3a288393f6bd736eaf 100644
|
| --- a/mojo/common/common_type_converters.cc
|
| +++ b/mojo/converters/base/base_type_converters.cc
|
| @@ -1,8 +1,8 @@
|
| -// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// 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/common_type_converters.h"
|
| +#include "mojo/converters/base/base_type_converters.h"
|
|
|
| #include <string>
|
|
|
| @@ -37,20 +37,4 @@ base::string16 TypeConverter<base::string16, String>::Convert(
|
| return base::UTF8ToUTF16(input.To<base::StringPiece>());
|
| }
|
|
|
| -std::string TypeConverter<std::string, Array<uint8_t> >::Convert(
|
| - const Array<uint8_t>& input) {
|
| - if (input.is_null())
|
| - return std::string();
|
| -
|
| - return std::string(reinterpret_cast<const char*>(&input.front()),
|
| - input.size());
|
| -}
|
| -
|
| -Array<uint8_t> TypeConverter<Array<uint8_t>, std::string>::Convert(
|
| - const std::string& input) {
|
| - Array<uint8_t> result(input.size());
|
| - memcpy(&result.front(), input.c_str(), input.size());
|
| - return result.Pass();
|
| -}
|
| -
|
| } // namespace mojo
|
|
|