// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_UTILITY_MEDIA_GALLERIES_ITUNES_LIBRARY_PARSER_H_ #define CHROME_UTILITY_MEDIA_GALLERIES_ITUNES_LIBRARY_PARSER_H_ #include #include "chrome/common/media_galleries/itunes_library.h" namespace itunes { class ITunesLibraryParser { public: ITunesLibraryParser(); ~ITunesLibraryParser(); // Returns true if at least one track was found. Malformed track entries // are silently ignored. bool Parse(const std::string& xml); const parser::Library& library() { return library_; } private: parser::Library library_; DISALLOW_COPY_AND_ASSIGN(ITunesLibraryParser); }; } // namespace itunes #endif // CHROME_UTILITY_MEDIA_GALLERIES_ITUNES_LIBRARY_PARSER_H_