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

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

Issue 10280004: gdata: Remove GDataFileSystem::FindEntryByPathAsync() (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/gdata_file_system.h » ('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_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 12 matching lines...) Expand all
23 const FilePath& directory_path, 23 const FilePath& directory_path,
24 GDataEntry* entry)> 24 GDataEntry* entry)>
25 FindEntryCallback; 25 FindEntryCallback;
26 26
27 // Delegate class used to deal with results synchronous read-only search 27 // Delegate class used to deal with results synchronous read-only search
28 // over virtual file system. 28 // over virtual file system.
29 class FindEntryDelegate { 29 class FindEntryDelegate {
30 public: 30 public:
31 virtual ~FindEntryDelegate(); 31 virtual ~FindEntryDelegate();
32 32
33 // Called when FindEntryByPathSync() completes search. 33 // Called when GDataRootDirectory::FindEntryByPath() completes search.
34 virtual void OnDone(base::PlatformFileError error, 34 virtual void OnDone(base::PlatformFileError error,
35 const FilePath& directory_path, 35 const FilePath& directory_path,
36 GDataEntry* entry) = 0; 36 GDataEntry* entry) = 0;
37 }; 37 };
38 38
39 // Delegate used to find a directory element for file system updates. 39 // Delegate used to find a directory element for file system updates.
40 class ReadOnlyFindEntryDelegate : public FindEntryDelegate { 40 class ReadOnlyFindEntryDelegate : public FindEntryDelegate {
41 public: 41 public:
42 ReadOnlyFindEntryDelegate(); 42 ReadOnlyFindEntryDelegate();
43 43
(...skipping 23 matching lines...) Expand all
67 virtual void OnDone(base::PlatformFileError error, 67 virtual void OnDone(base::PlatformFileError error,
68 const FilePath& directory_path, 68 const FilePath& directory_path,
69 GDataEntry* entry) OVERRIDE; 69 GDataEntry* entry) OVERRIDE;
70 70
71 const FindEntryCallback callback_; 71 const FindEntryCallback callback_;
72 }; 72 };
73 73
74 } // namespace gdata 74 } // namespace gdata
75 75
76 #endif // CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_DELEGATE_H_ 76 #endif // CHROME_BROWSER_CHROMEOS_GDATA_FIND_ENTRY_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698