Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_XML_UTILS_H_ | |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_XML_UTILS_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 class XmlReader; | |
| 11 | |
| 12 namespace itunes { | |
| 13 | |
| 14 // Like XmlReader::SkipToElement, but will advance to the next open tag if the | |
| 15 // cursor is on a close tag. | |
| 16 bool SkipToNextElement(XmlReader* reader); | |
| 17 | |
| 18 // Traverse |reader| looking for a node named |name| at the current depth | |
| 19 // of |reader|. | |
| 20 bool SeekToNodeAtCurrentDepth(XmlReader* reader, const std::string& name); | |
| 21 | |
| 22 // Search within the dict for |key|. | |
|
bryeung
2013/06/03 17:34:16
A comment about pre-conditions would be nice here
vandebo (ex-Chrome)
2013/06/03 17:46:52
Done.
It's a plist XML, so I didn't really descri
bryeung
2013/06/03 17:49:22
sgtm, thanks
| |
| 23 bool SeekInDict(XmlReader* reader, const std::string& key); | |
| 24 | |
| 25 } // namespace itunes | |
| 26 | |
| 27 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_ITUNES_XML_UTILS_H_ | |
| OLD | NEW |