blob: e01599cffc6edf5937f7978b14c3d61edeaf62db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// 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 <string>
#include "base/platform_file.h"
#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_
|