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