Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / common / media_galleries / iphoto_library.h
blob00e8758a429dcaffc184989d867e7199ba48bb83
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 // These data structures can be used to describe the contents of an iPhoto
6 // library.
8 #ifndef CHROME_COMMON_MEDIA_GALLERIES_IPHOTO_LIBRARY_H_
9 #define CHROME_COMMON_MEDIA_GALLERIES_IPHOTO_LIBRARY_H_
11 #include <map>
12 #include <set>
14 #include "base/files/file_path.h"
16 namespace iphoto {
17 namespace parser {
19 struct Photo {
20 Photo();
21 Photo(uint64 id,
22 const base::FilePath& location,
23 const base::FilePath& original_location);
24 bool operator<(const Photo& other) const;
26 uint64 id;
27 base::FilePath location;
28 base::FilePath original_location;
31 typedef std::set<uint64> Album;
32 typedef std::map<std::string /*album name*/, Album> Albums;
34 struct Library {
35 Library();
36 Library(const Albums& albums, const std::set<Photo>& all_photos);
37 ~Library();
39 Albums albums;
40 std::set<Photo> all_photos;
43 } // namespace parser
44 } // namespace iphoto
46 #endif // CHROME_COMMON_MEDIA_GALLERIES_IPHOTO_LIBRARY_H_