OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // These data structures can be used to describe the contents of an iTunes | 5 // These data structures can be used to describe the contents of an iTunes |
6 // library. | 6 // library. |
7 | 7 |
8 #ifndef CHROME_COMMON_MEDIA_GALLERIES_ITUNES_LIBRARY_H_ | 8 #ifndef CHROME_COMMON_MEDIA_GALLERIES_ITUNES_LIBRARY_H_ |
9 #define CHROME_COMMON_MEDIA_GALLERIES_ITUNES_LIBRARY_H_ | 9 #define CHROME_COMMON_MEDIA_GALLERIES_ITUNES_LIBRARY_H_ |
10 | 10 |
| 11 #include <stdint.h> |
| 12 |
11 #include <map> | 13 #include <map> |
12 #include <set> | 14 #include <set> |
13 | 15 |
14 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
15 | 17 |
16 namespace itunes { | 18 namespace itunes { |
17 namespace parser { | 19 namespace parser { |
18 | 20 |
19 struct Track { | 21 struct Track { |
20 Track(); | 22 Track(); |
21 Track(uint64 id, const base::FilePath& location); | 23 Track(uint64_t id, const base::FilePath& location); |
22 bool operator<(const Track& other) const; | 24 bool operator<(const Track& other) const; |
23 | 25 |
24 uint64 id; | 26 uint64_t id; |
25 base::FilePath location; | 27 base::FilePath location; |
26 }; | 28 }; |
27 | 29 |
28 typedef std::set<Track> Album; | 30 typedef std::set<Track> Album; |
29 typedef std::map<std::string /*album name*/, Album> Albums; | 31 typedef std::map<std::string /*album name*/, Album> Albums; |
30 typedef std::map<std::string /*artist name*/, Albums> Library; | 32 typedef std::map<std::string /*artist name*/, Albums> Library; |
31 | 33 |
32 } // namespace parser | 34 } // namespace parser |
33 } // namespace itunes | 35 } // namespace itunes |
34 | 36 |
35 #endif // CHROME_COMMON_MEDIA_GALLERIES_ITUNES_LIBRARY_H_ | 37 #endif // CHROME_COMMON_MEDIA_GALLERIES_ITUNES_LIBRARY_H_ |
36 | 38 |
OLD | NEW |