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

Side by Side Diff: chrome/browser/chromeos/drive/sync_client.h

Issue 16107004: drive: Stop returning FilePath from GetResourceEntryById (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
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_DRIVE_SYNC_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_CLIENT_H_
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_CLIENT_H_ 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 const std::vector<std::string>* to_upload); 103 const std::vector<std::string>* to_upload);
104 104
105 // Called when the resource ID of a pinned file is obtained. 105 // Called when the resource ID of a pinned file is obtained.
106 void OnGetResourceIdOfExistingPinnedFile(const std::string& resource_id, 106 void OnGetResourceIdOfExistingPinnedFile(const std::string& resource_id,
107 const FileCacheEntry& cache_entry); 107 const FileCacheEntry& cache_entry);
108 108
109 // Called when a file entry is obtained. 109 // Called when a file entry is obtained.
110 void OnGetResourceEntryById(const std::string& resource_id, 110 void OnGetResourceEntryById(const std::string& resource_id,
111 const FileCacheEntry& cache_entry, 111 const FileCacheEntry& cache_entry,
112 FileError error, 112 FileError error,
113 const base::FilePath& file_path,
114 scoped_ptr<ResourceEntry> entry); 113 scoped_ptr<ResourceEntry> entry);
115 114
116 // Called when a cache entry is obtained. 115 // Called when a cache entry is obtained.
117 void OnGetCacheEntry(const std::string& resource_id, 116 void OnGetCacheEntry(const std::string& resource_id,
118 const std::string& latest_md5, 117 const std::string& latest_md5,
119 bool success, 118 bool success,
120 const FileCacheEntry& cache_entry); 119 const FileCacheEntry& cache_entry);
121 120
122 // Called when an existing cache entry and the local files are removed. 121 // Called when an existing cache entry and the local files are removed.
123 void OnRemove(const std::string& resource_id, FileError error); 122 void OnRemove(const std::string& resource_id, FileError error);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // invalidate its weak pointers before any other members are destroyed. 156 // invalidate its weak pointers before any other members are destroyed.
158 base::WeakPtrFactory<SyncClient> weak_ptr_factory_; 157 base::WeakPtrFactory<SyncClient> weak_ptr_factory_;
159 158
160 DISALLOW_COPY_AND_ASSIGN(SyncClient); 159 DISALLOW_COPY_AND_ASSIGN(SyncClient);
161 }; 160 };
162 161
163 } // namespace internal 162 } // namespace internal
164 } // namespace drive 163 } // namespace drive
165 164
166 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_CLIENT_H_ 165 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_SYNC_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/resource_metadata_unittest.cc ('k') | chrome/browser/chromeos/drive/sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698