OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_COMMON_LIBXML_UTILS_H__ | 5 #ifndef BASE_LIBXML_UTILS_H__ |
6 #define CHROME_COMMON_LIBXML_UTILS_H__ | 6 #define BASE_LIBXML_UTILS_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "libxml/xmlreader.h" | 11 #include "libxml/xmlreader.h" |
12 #include "libxml/xmlwriter.h" | 12 #include "libxml/xmlwriter.h" |
13 | 13 |
14 class FilePath; | 14 class FilePath; |
15 | 15 |
16 // Converts a libxml xmlChar* into a UTF-8 std::string. | 16 // Converts a libxml xmlChar* into a UTF-8 std::string. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 175 } |
176 | 176 |
177 private: | 177 private: |
178 // The underlying libxml xmlTextWriter. | 178 // The underlying libxml xmlTextWriter. |
179 xmlTextWriterPtr writer_; | 179 xmlTextWriterPtr writer_; |
180 | 180 |
181 // Stores the output. | 181 // Stores the output. |
182 xmlBufferPtr buffer_; | 182 xmlBufferPtr buffer_; |
183 }; | 183 }; |
184 | 184 |
185 #endif // CHROME_COMMON_LIBXML_UTILS_H__ | 185 #endif // BASE_LIBXML_UTILS_H__ |
OLD | NEW |