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 #include "chrome/common/media_galleries/iphoto_library.h" | 5 #include "chrome/common/media_galleries/iphoto_library.h" |
6 | 6 |
7 namespace iphoto { | 7 namespace iphoto { |
8 namespace parser { | 8 namespace parser { |
9 | 9 |
10 Photo::Photo() | 10 Photo::Photo() |
11 : id(0) { | 11 : id(0) { |
12 } | 12 } |
13 | 13 |
14 Photo::Photo(uint64 id, | 14 Photo::Photo(uint64_t id, |
15 const base::FilePath& location, | 15 const base::FilePath& location, |
16 const base::FilePath& original_location) | 16 const base::FilePath& original_location) |
17 : id(id), | 17 : id(id), location(location), original_location(original_location) {} |
18 location(location), | |
19 original_location(original_location) { | |
20 } | |
21 | 18 |
22 bool Photo::operator<(const Photo& other) const { | 19 bool Photo::operator<(const Photo& other) const { |
23 return id < other.id; | 20 return id < other.id; |
24 } | 21 } |
25 | 22 |
26 Library::Library() {} | 23 Library::Library() {} |
27 | 24 |
28 Library::Library(const Albums& albums, | 25 Library::Library(const Albums& albums, |
29 const std::set<Photo>& all_photos) | 26 const std::set<Photo>& all_photos) |
30 : albums(albums), | 27 : albums(albums), |
31 all_photos(all_photos) {} | 28 all_photos(all_photos) {} |
32 | 29 |
33 Library::~Library() {} | 30 Library::~Library() {} |
34 | 31 |
35 | 32 |
36 } // namespace parser | 33 } // namespace parser |
37 } // namespace iphoto | 34 } // namespace iphoto |
OLD | NEW |