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

Side by Side Diff: chrome/common/media_galleries/iphoto_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 iPhoto 5 // These data structures can be used to describe the contents of an iPhoto
6 // library. 6 // library.
7 7
8 #ifndef CHROME_COMMON_MEDIA_GALLERIES_IPHOTO_LIBRARY_H_ 8 #ifndef CHROME_COMMON_MEDIA_GALLERIES_IPHOTO_LIBRARY_H_
9 #define CHROME_COMMON_MEDIA_GALLERIES_IPHOTO_LIBRARY_H_ 9 #define CHROME_COMMON_MEDIA_GALLERIES_IPHOTO_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 iphoto { 18 namespace iphoto {
17 namespace parser { 19 namespace parser {
18 20
19 struct Photo { 21 struct Photo {
20 Photo(); 22 Photo();
21 Photo(uint64 id, 23 Photo(uint64_t id,
22 const base::FilePath& location, 24 const base::FilePath& location,
23 const base::FilePath& original_location); 25 const base::FilePath& original_location);
24 bool operator<(const Photo& other) const; 26 bool operator<(const Photo& other) const;
25 27
26 uint64 id; 28 uint64_t id;
27 base::FilePath location; 29 base::FilePath location;
28 base::FilePath original_location; 30 base::FilePath original_location;
29 }; 31 };
30 32
31 typedef std::set<uint64> Album; 33 typedef std::set<uint64_t> Album;
32 typedef std::map<std::string /*album name*/, Album> Albums; 34 typedef std::map<std::string /*album name*/, Album> Albums;
33 35
34 struct Library { 36 struct Library {
35 Library(); 37 Library();
36 Library(const Albums& albums, const std::set<Photo>& all_photos); 38 Library(const Albums& albums, const std::set<Photo>& all_photos);
37 ~Library(); 39 ~Library();
38 40
39 Albums albums; 41 Albums albums;
40 std::set<Photo> all_photos; 42 std::set<Photo> all_photos;
41 }; 43 };
42 44
43 } // namespace parser 45 } // namespace parser
44 } // namespace iphoto 46 } // namespace iphoto
45 47
46 #endif // CHROME_COMMON_MEDIA_GALLERIES_IPHOTO_LIBRARY_H_ 48 #endif // CHROME_COMMON_MEDIA_GALLERIES_IPHOTO_LIBRARY_H_
47 49
OLDNEW
« no previous file with comments | « chrome/common/media/webrtc_logging_message_data.cc ('k') | chrome/common/media_galleries/iphoto_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698