Elim cr-checkbox
[chromium-blink-merge.git] / chrome / browser / chromeos / fileapi / mtp_watcher_manager.cc
blob58439f8e1398013d68fcef49b24c13e38072737d
1 // Copyright 2015 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.
5 #include "chrome/browser/chromeos/fileapi/mtp_watcher_manager.h"
7 namespace chromeos {
9 MTPWatcherManager::MTPWatcherManager(
10 DeviceMediaAsyncFileUtil* device_media_async_file_util)
11 : device_media_async_file_util_(device_media_async_file_util) {
12 DCHECK(device_media_async_file_util != NULL);
15 MTPWatcherManager::~MTPWatcherManager() {
18 void MTPWatcherManager::AddWatcher(
19 const storage::FileSystemURL& url,
20 bool recursive,
21 const StatusCallback& callback,
22 const NotificationCallback& notification_callback) {
23 device_media_async_file_util_->AddWatcher(url, recursive, callback,
24 notification_callback);
27 void MTPWatcherManager::RemoveWatcher(const storage::FileSystemURL& url,
28 bool recursive,
29 const StatusCallback& callback) {
30 device_media_async_file_util_->RemoveWatcher(url, recursive, callback);
33 } // namespace chromeos