Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Side by Side Diff: chrome/browser/media_galleries/fileapi/file_path_watcher_util.h

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILE_PATH_WATCHER_UTIL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILE_PATH_WATCHER_UTIL_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILE_PATH_WATCHER_UTIL_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILE_PATH_WATCHER_UTIL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_path_watcher.h" 11 #include "base/files/file_path_watcher.h"
12 12
13 namespace chrome {
14
15 typedef base::Callback<void(scoped_ptr<base::FilePathWatcher> watcher)> 13 typedef base::Callback<void(scoped_ptr<base::FilePathWatcher> watcher)>
16 FileWatchStartedCallback; 14 FileWatchStartedCallback;
17 15
18 // Called on the MediaTaskRunner to begin a file watch. 16 // Called on the MediaTaskRunner to begin a file watch.
19 // |watch_started_callback| is responsible for taking ownership of the 17 // |watch_started_callback| is responsible for taking ownership of the
20 // file watcher upon start. All callbacks are run on the MediaTaskRunner. 18 // file watcher upon start. All callbacks are run on the MediaTaskRunner.
21 void StartFilePathWatchOnMediaTaskRunner( 19 void StartFilePathWatchOnMediaTaskRunner(
22 const base::FilePath& path, 20 const base::FilePath& path,
23 const FileWatchStartedCallback& watch_started_callback, 21 const FileWatchStartedCallback& watch_started_callback,
24 const base::FilePathWatcher::Callback& path_changed_callback); 22 const base::FilePathWatcher::Callback& path_changed_callback);
25 23
26 } // namespace chrome
27
28 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILE_PATH_WATCHER_UTIL_H_ 24 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_FILE_PATH_WATCHER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698