Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: chrome/common/media_galleries/itunes_library.h

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « chrome/common/media_galleries/iphoto_library.cc ('k') | chrome/common/media_galleries/itunes_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698