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

Side by Side Diff: chrome/browser/chromeos/gdata/find_entry_callback.h

Issue 10399063: Revert 137657 - Remove directory_path argument from chromeos::FindEntryCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/find_entry_callback.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/find_entry_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698