| OLD | NEW |
| 1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 iovecs.push_back(iov); | 76 iovecs.push_back(iov); |
| 77 | 77 |
| 78 return file_writer->WriteIoVec(&iovecs); | 78 return file_writer->WriteIoVec(&iovecs); |
| 79 } | 79 } |
| 80 | 80 |
| 81 // Explicit template instantiation of the forms of MinidumpStringWriter<> used | 81 // Explicit template instantiation of the forms of MinidumpStringWriter<> used |
| 82 // as base classes. | 82 // as base classes. |
| 83 template class MinidumpStringWriter<MinidumpStringWriterUTF16Traits>; | 83 template class MinidumpStringWriter<MinidumpStringWriterUTF16Traits>; |
| 84 template class MinidumpStringWriter<MinidumpStringWriterUTF8Traits>; | 84 template class MinidumpStringWriter<MinidumpStringWriterUTF8Traits>; |
| 85 | 85 |
| 86 MinidumpUTF16StringWriter::~MinidumpUTF16StringWriter() { |
| 87 } |
| 88 |
| 86 void MinidumpUTF16StringWriter::SetUTF8(const std::string& string_utf8) { | 89 void MinidumpUTF16StringWriter::SetUTF8(const std::string& string_utf8) { |
| 87 DCHECK_EQ(state(), kStateMutable); | 90 DCHECK_EQ(state(), kStateMutable); |
| 88 | 91 |
| 89 set_string(MinidumpWriterUtil::ConvertUTF8ToUTF16(string_utf8)); | 92 set_string(MinidumpWriterUtil::ConvertUTF8ToUTF16(string_utf8)); |
| 90 } | 93 } |
| 91 | 94 |
| 95 MinidumpUTF8StringWriter::~MinidumpUTF8StringWriter() { |
| 96 } |
| 97 |
| 92 } // namespace internal | 98 } // namespace internal |
| 93 } // namespace crashpad | 99 } // namespace crashpad |
| OLD | NEW |