OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser/chromeos/file_system_provider/observed_entry.h" | 5 #include "chrome/browser/chromeos/file_system_provider/observed_entry.h" |
6 | 6 |
7 namespace chromeos { | 7 namespace chromeos { |
8 namespace file_system_provider { | 8 namespace file_system_provider { |
9 | 9 |
| 10 ObservedEntryKey::ObservedEntryKey(const base::FilePath& entry_path, |
| 11 bool recursive) |
| 12 : entry_path(entry_path), recursive(recursive) { |
| 13 } |
| 14 |
| 15 ObservedEntryKey::~ObservedEntryKey() { |
| 16 } |
| 17 |
| 18 bool ObservedEntryKey::Comparator::operator()(const ObservedEntryKey& a, |
| 19 const ObservedEntryKey& b) const { |
| 20 if (a.entry_path != b.entry_path) |
| 21 return a.entry_path < b.entry_path; |
| 22 return a.recursive < b.recursive; |
| 23 } |
| 24 |
10 ObservedEntry::ObservedEntry() : recursive(false) { | 25 ObservedEntry::ObservedEntry() : recursive(false) { |
11 } | 26 } |
12 | 27 |
13 ObservedEntry::~ObservedEntry() { | 28 ObservedEntry::~ObservedEntry() { |
14 } | 29 } |
15 | 30 |
16 } // namespace file_system_provider | 31 } // namespace file_system_provider |
17 } // namespace chromeos | 32 } // namespace chromeos |
OLD | NEW |