summaryrefslogtreecommitdiffstats
path: root/chrome/common/media_galleries/iphoto_library.cc
blob: 7c580ddd3ec2fd7ba1310e2a1c2559b5b8c59080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/common/media_galleries/iphoto_library.h"

namespace iphoto {
namespace parser {

Photo::Photo()
    : id(0) {
}

Photo::Photo(uint64 id,
             const base::FilePath& location,
             const base::FilePath& original_location)
    : id(id),
      location(location),
      original_location(original_location) {
}

bool Photo::operator<(const Photo& other) const {
  return id < other.id;
}

Library::Library() {}

Library::Library(const Albums& albums,
                 const std::set<Photo>& all_photos)
    : albums(albums),
      all_photos(all_photos) {}

Library::~Library() {}


}  // namespace parser
}  // namespace iphoto