blob: 48c3b45062639eaeba6944af1ec4af9098882460 [file] [log] [blame]
// Copyright 2015 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.
#ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_WATCHER_MANAGER_H_
#define CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_WATCHER_MANAGER_H_
#include "chrome/browser/media_galleries/fileapi/device_media_async_file_util.h"
#include "storage/browser/file_system/watcher_manager.h"
namespace storage {
class FileSystemURL;
} // namespace storage
namespace chromeos {
class MTPWatcherManager : public storage::WatcherManager {
public:
explicit MTPWatcherManager(
DeviceMediaAsyncFileUtil* device_media_async_file_util);
~MTPWatcherManager() override;
void AddWatcher(const storage::FileSystemURL& url,
bool recursive,
StatusCallback callback,
NotificationCallback notification_callback) override;
void RemoveWatcher(const storage::FileSystemURL& url,
bool recursive,
StatusCallback callback) override;
private:
DeviceMediaAsyncFileUtil* const device_media_async_file_util_;
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_WATCHER_MANAGER_H_