summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/file_system_provider/watcher.cc
blob: c2dc9a8b7009025c38d7c03561916db8d15c2dcc (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 2014 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/browser/chromeos/file_system_provider/watcher.h"

namespace chromeos {
namespace file_system_provider {

WatcherKey::WatcherKey(const base::FilePath& entry_path, bool recursive)
    : entry_path(entry_path), recursive(recursive) {
}

WatcherKey::~WatcherKey() {
}

bool WatcherKey::Comparator::operator()(const WatcherKey& a,
                                        const WatcherKey& b) const {
  if (a.entry_path != b.entry_path)
    return a.entry_path < b.entry_path;
  return a.recursive < b.recursive;
}

Subscriber::Subscriber() : persistent(false) {
}

Subscriber::~Subscriber() {
}

Watcher::Watcher() : recursive(false) {
}

Watcher::~Watcher() {
}

}  // namespace file_system_provider
}  // namespace chromeos