|  | // 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(const Subscriber& other) = default; | 
|  |  | 
|  | Subscriber::~Subscriber() { | 
|  | } | 
|  |  | 
|  | Watcher::Watcher() : recursive(false) { | 
|  | } | 
|  |  | 
|  | Watcher::Watcher(const Watcher& other) = default; | 
|  |  | 
|  | Watcher::~Watcher() { | 
|  | } | 
|  |  | 
|  | }  // namespace file_system_provider | 
|  | }  // namespace chromeos |