| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_CALLBACK_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_CALLBACK_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/callback.h" | |
| 10 #include "base/platform_file.h" | |
| 11 | |
| 12 namespace gdata { | |
| 13 | |
| 14 class GDataEntry; | |
| 15 | |
| 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 | |
| 18 // of the callback method. This callback can be invoked on different thread | |
| 19 // than one that started the request. | |
| 20 typedef base::Callback<void(base::PlatformFileError error, GDataEntry* entry)> | |
| 21 FindEntryCallback; | |
| 22 | |
| 23 // Callback used to find a directory element for file system updates. | |
| 24 void ReadOnlyFindEntryCallback(GDataEntry** out, | |
| 25 base::PlatformFileError error, | |
| 26 GDataEntry* entry); | |
| 27 | |
| 28 } // namespace gdata | |
| 29 | |
| 30 #endif // CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_CALLBACK_H_ | |
| OLD | NEW |