1 // Copyright 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_UTILITY_MEDIA_GALLERIES_ITUNES_PREF_PARSER_WIN_H_ 6 #define CHROME_UTILITY_MEDIA_GALLERIES_ITUNES_PREF_PARSER_WIN_H_ 7 8 #include <string> 9 10 #include "base/files/file_path.h" 11 12 namespace itunes { 13 14 // Extracts the library XML location from the iTunes preferences XML data. 15 // Return the path the the library XML location if found. The minimal 16 // valid snippet of XML is: 17 // 18 // <plist> 19 // <dict> 20 // <key>User Preferences</key> 21 // <dict> 22 // <key>iTunes Library XML Location:1</key> 23 // <data>Base64 encoded w string path</data> 24 // </dict> 25 // </dict> 26 // </plist> 27 // 28 base::FilePath::StringType FindLibraryLocationInPrefXml( 29 const std::string& pref_xml_data); 30 31 } // namespace itunes 32 33 #endif // CHROME_UTILITY_MEDIA_GALLERIES_ITUNES_PREF_PARSER_WIN_H_ 34