Index: chrome/browser/media_galleries/fileapi/data_provider_helper.h |
diff --git a/chrome/browser/media_galleries/fileapi/data_provider_helper.h b/chrome/browser/media_galleries/fileapi/data_provider_helper.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8455e5dae552a55aa8b3a757dc94d94d4b619d70 |
--- /dev/null |
+++ b/chrome/browser/media_galleries/fileapi/data_provider_helper.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2013 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_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.
|
+#define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DATA_PROVIDER_HELPER_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/callback_forward.h" |
+#include "base/files/file_path.h" |
+#include "base/files/file_path_watcher.h" |
+ |
+namespace chrome { |
+ |
+typedef base::Callback<void(scoped_ptr<base::FilePathWatcher> watcher)> |
+ FileWatchStartedCallback; |
+ |
+// Called on the MediaTaskRunner to begin a file watch. |
+// |watch_started_callback| is responsible for taking ownership of the |
+// file watcher upon start. All callbacks are run on the MediaTaskRunner. |
+void StartFilePathWatchOnMediaTaskRunner( |
+ const base::FilePath& path, |
+ bool recursive, |
+ const FileWatchStartedCallback& watch_started_callback, |
+ const base::FilePathWatcher::Callback& path_changed_callback); |
+ |
+} // namespace chrome |
+ |
+#endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DATA_PROVIDER_HELPER_H_ |