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, | 20 typedef base::Callback<void(base::PlatformFileError error, GDataEntry* entry)> |
21 const FilePath& directory_path, | |
22 GDataEntry* entry)> | |
23 FindEntryCallback; | 21 FindEntryCallback; |
24 | 22 |
25 // Callback used to find a directory element for file system updates. | 23 // Callback used to find a directory element for file system updates. |
26 void ReadOnlyFindEntryCallback(GDataEntry** out, | 24 void ReadOnlyFindEntryCallback(GDataEntry** out, |
27 base::PlatformFileError error, | 25 base::PlatformFileError error, |
28 const FilePath& directory_path, | |
29 GDataEntry* entry); | 26 GDataEntry* entry); |
30 | 27 |
31 } // namespace gdata | 28 } // namespace gdata |
32 | 29 |
33 #endif // CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_CALLBACK_H_ | 30 #endif // CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_CALLBACK_H_ |
OLD | NEW |