Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / utility / media_galleries / iphoto_library_parser.h
blobdcfe5bd45f9670503091cc42ba33f2708ec26a3a
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.
5 #ifndef CHROME_UTILITY_MEDIA_GALLERIES_IPHOTO_LIBRARY_PARSER_H_
6 #define CHROME_UTILITY_MEDIA_GALLERIES_IPHOTO_LIBRARY_PARSER_H_
8 #include <string>
10 #include "chrome/common/media_galleries/iphoto_library.h"
12 namespace iphoto {
14 class IPhotoLibraryParser {
15 public:
16 IPhotoLibraryParser();
17 ~IPhotoLibraryParser();
19 // Returns true if at least one track was found. Malformed track entries
20 // are silently ignored.
21 bool Parse(const std::string& xml);
23 const parser::Library& library() { return library_; }
25 private:
26 parser::Library library_;
28 DISALLOW_COPY_AND_ASSIGN(IPhotoLibraryParser);
31 } // namespace iphoto
33 #endif // CHROME_UTILITY_MEDIA_GALLERIES_IPHOTO_LIBRARY_PARSER_H_