OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 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. | |
4 | |
5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DATA_PROVIDER_HELPER_H_ | |
vandebo (ex-Chrome)
2013/08/29 23:19:22
Since there's nothing else in here, call this file
tommycli
2013/09/03 20:20:43
Done.
| |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DATA_PROVIDER_HELPER_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/callback_forward.h" | |
10 #include "base/files/file_path.h" | |
11 #include "base/files/file_path_watcher.h" | |
12 | |
13 namespace chrome { | |
14 | |
15 typedef base::Callback<void(scoped_ptr<base::FilePathWatcher> watcher)> | |
16 FileWatchStartedCallback; | |
17 | |
18 // Called on the MediaTaskRunner to begin a file watch. | |
19 // |watch_started_callback| is responsible for taking ownership of the | |
20 // file watcher upon start. All callbacks are run on the MediaTaskRunner. | |
21 void StartFilePathWatchOnMediaTaskRunner( | |
22 const base::FilePath& path, | |
23 bool recursive, | |
24 const FileWatchStartedCallback& watch_started_callback, | |
25 const base::FilePathWatcher::Callback& path_changed_callback); | |
26 | |
27 } // namespace chrome | |
28 | |
29 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DATA_PROVIDER_HELPER_H_ | |
OLD | NEW |