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"
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
,
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
,
29 const StatusCallback
& callback
) {
30 device_media_async_file_util_
->RemoveWatcher(url
, recursive
, callback
);
33 } // namespace chromeos