Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / media_galleries / fileapi / file_path_watcher_util.h
blobbf158ac40f42c0e8a62602f8f61c970e750262f1
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.
5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILE_PATH_WATCHER_UTIL_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILE_PATH_WATCHER_UTIL_H_
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"
13 typedef base::Callback<void(scoped_ptr<base::FilePathWatcher> watcher)>
14 FileWatchStartedCallback;
16 // Called on the MediaTaskRunner to begin a file watch.
17 // |watch_started_callback| is responsible for taking ownership of the
18 // file watcher upon start. All callbacks are run on the MediaTaskRunner.
19 void StartFilePathWatchOnMediaTaskRunner(
20 const base::FilePath& path,
21 const FileWatchStartedCallback& watch_started_callback,
22 const base::FilePathWatcher::Callback& path_changed_callback);
24 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILE_PATH_WATCHER_UTIL_H_