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_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 Loading... |
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 Loading... |
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_ |
OLD | NEW |