forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmtp_watcher_manager.h
40 lines (28 loc) · 1.23 KB
/
mtp_watcher_manager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 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_