18bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 28bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 38bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// found in the LICENSE file. 48bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) 58bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)#include "chrome/common/media_galleries/iphoto_library.h" 68bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) 78bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)namespace iphoto { 88bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)namespace parser { 98bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) 108bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)Photo::Photo() 118bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) : id(0) { 128bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)} 138bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) 14f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)Photo::Photo(uint64 id, 15f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles) const base::FilePath& location, 16f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles) const base::FilePath& original_location) 178bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) : id(id), 18f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles) location(location), 19f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles) original_location(original_location) { 208bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)} 218bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) 228bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)bool Photo::operator<(const Photo& other) const { 238bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) return id < other.id; 248bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)} 258bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) 268bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)Library::Library() {} 278bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) 288bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)Library::Library(const Albums& albums, 298bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) const std::set<Photo>& all_photos) 308bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) : albums(albums), 318bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) all_photos(all_photos) {} 328bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) 338bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)Library::~Library() {} 348bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) 358bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles) 368bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)} // namespace parser 378bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)} // namespace iphoto 38