OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROMEOS_GDATA_FIND_ENTRY_CALLBACK_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_CALLBACK_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_CALLBACK_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_CALLBACK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
11 | 11 |
12 namespace gdata { | 12 namespace gdata { |
13 | 13 |
14 class GDataEntry; | 14 class GDataEntry; |
15 | 15 |
16 // Used to get result of file search. Please note that |file| is a live | 16 // Used to get result of file search. Please note that |file| is a live |
17 // object provided to this callback under lock. It must not be used outside | 17 // object provided to this callback under lock. It must not be used outside |
18 // of the callback method. This callback can be invoked on different thread | 18 // of the callback method. This callback can be invoked on different thread |
19 // than one that started the request. | 19 // than one that started the request. |
20 typedef base::Callback<void(base::PlatformFileError error, GDataEntry* entry)> | 20 typedef base::Callback<void(base::PlatformFileError error, |
| 21 const FilePath& directory_path, |
| 22 GDataEntry* entry)> |
21 FindEntryCallback; | 23 FindEntryCallback; |
22 | 24 |
23 // Callback used to find a directory element for file system updates. | 25 // Callback used to find a directory element for file system updates. |
24 void ReadOnlyFindEntryCallback(GDataEntry** out, | 26 void ReadOnlyFindEntryCallback(GDataEntry** out, |
25 base::PlatformFileError error, | 27 base::PlatformFileError error, |
| 28 const FilePath& directory_path, |
26 GDataEntry* entry); | 29 GDataEntry* entry); |
27 | 30 |
28 } // namespace gdata | 31 } // namespace gdata |
29 | 32 |
30 #endif // CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_CALLBACK_H_ | 33 #endif // CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_CALLBACK_H_ |
OLD | NEW |