| // 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/fileapi/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, |
| const StatusCallback& callback, |
| const NotificationCallback& notification_callback) override; |
| |
| void RemoveWatcher(const storage::FileSystemURL& url, |
| bool recursive, |
| const StatusCallback& callback) override; |
| |
| private: |
| DeviceMediaAsyncFileUtil* const device_media_async_file_util_; |
| }; |
| |
| } // namespace chromeos |
| |
| #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_MTP_WATCHER_MANAGER_H_ |