Componentize AccountReconcilor.
[chromium-blink-merge.git] / chrome / utility / media_galleries / iphoto_library_parser.h
blob914e6641a5e725b22881f79cc086856cee5beea7
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 "base/platform_file.h"
11 #include "chrome/common/media_galleries/iphoto_library.h"
13 namespace iphoto {
15 class IPhotoLibraryParser {
16 public:
17 IPhotoLibraryParser();
18 ~IPhotoLibraryParser();
20 // Returns true if at least one track was found. Malformed track entries
21 // are silently ignored.
22 bool Parse(const std::string& xml);
24 const parser::Library& library() { return library_; }
26 private:
27 parser::Library library_;
29 DISALLOW_COPY_AND_ASSIGN(IPhotoLibraryParser);
32 } // namespace iphoto
34 #endif // CHROME_UTILITY_MEDIA_GALLERIES_IPHOTO_LIBRARY_PARSER_H_