OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/libxml_utils.h" | 5 #include "base/libxml_utils.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 | 12 |
13 #include "libxml/xmlreader.h" | 13 #include "libxml/xmlreader.h" |
14 | 14 |
15 std::string XmlStringToStdString(const xmlChar* xmlstring) { | 15 std::string XmlStringToStdString(const xmlChar* xmlstring) { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 writer_ = xmlNewTextWriterMemory(buffer_, 0); | 144 writer_ = xmlNewTextWriterMemory(buffer_, 0); |
145 xmlTextWriterSetIndent(writer_, 1); | 145 xmlTextWriterSetIndent(writer_, 1); |
146 xmlTextWriterStartDocument(writer_, NULL, NULL, NULL); | 146 xmlTextWriterStartDocument(writer_, NULL, NULL, NULL); |
147 } | 147 } |
148 | 148 |
149 void XmlWriter::StopWriting() { | 149 void XmlWriter::StopWriting() { |
150 xmlTextWriterEndDocument(writer_); | 150 xmlTextWriterEndDocument(writer_); |
151 xmlFreeTextWriter(writer_); | 151 xmlFreeTextWriter(writer_); |
152 writer_ = NULL; | 152 writer_ = NULL; |
153 } | 153 } |
OLD | NEW |