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

Side by Side Diff: chrome/common/media_galleries/iphoto_library.cc

Issue 52093003: [MediaGalleries] iPhoto: Add original file field to the parser. Dedupe album names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 1 month 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 | Annotate | Revision Log
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 #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, const base::FilePath& location) 14 Photo::Photo(uint64 id,
15 const base::FilePath& location,
16 const base::FilePath& original_location)
15 : id(id), 17 : id(id),
16 location(location) { 18 location(location),
19 original_location(original_location) {
17 } 20 }
18 21
19 bool Photo::operator<(const Photo& other) const { 22 bool Photo::operator<(const Photo& other) const {
20 return id < other.id; 23 return id < other.id;
21 } 24 }
22 25
23 Library::Library() {} 26 Library::Library() {}
24 27
25 Library::Library(const Albums& albums, 28 Library::Library(const Albums& albums,
26 const std::set<Photo>& all_photos) 29 const std::set<Photo>& all_photos)
27 : albums(albums), 30 : albums(albums),
28 all_photos(all_photos) {} 31 all_photos(all_photos) {}
29 32
30 Library::~Library() {} 33 Library::~Library() {}
31 34
32 35
33 } // namespace parser 36 } // namespace parser
34 } // namespace iphoto 37 } // namespace iphoto
OLDNEW
« no previous file with comments | « chrome/common/media_galleries/iphoto_library.h ('k') | chrome/utility/media_galleries/iphoto_library_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698