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

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

Issue 10690149: gdata: Move GDataCache::CacheEntry out of GDataCache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removing the existing test Created 8 years, 5 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_GDATA_GDATA_SYNC_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYNC_CLIENT_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYNC_CLIENT_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYNC_CLIENT_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Called when a file entry is obtained. 153 // Called when a file entry is obtained.
154 void OnGetFileInfoByResourceId(const std::string& resource_id, 154 void OnGetFileInfoByResourceId(const std::string& resource_id,
155 base::PlatformFileError error, 155 base::PlatformFileError error,
156 const FilePath& file_path, 156 const FilePath& file_path,
157 scoped_ptr<GDataFileProto> file_proto); 157 scoped_ptr<GDataFileProto> file_proto);
158 158
159 // Called when a cache entry is obtained. 159 // Called when a cache entry is obtained.
160 void OnGetCacheEntry(const std::string& resource_id, 160 void OnGetCacheEntry(const std::string& resource_id,
161 const std::string& latest_md5, 161 const std::string& latest_md5,
162 bool success, 162 bool success,
163 const GDataCache::CacheEntry& cache_entry); 163 const GDataCacheEntry& cache_entry);
164 164
165 // Called when an existing cache entry and the local files are removed. 165 // Called when an existing cache entry and the local files are removed.
166 void OnRemove(base::PlatformFileError error, 166 void OnRemove(base::PlatformFileError error,
167 const std::string& resource_id, 167 const std::string& resource_id,
168 const std::string& md5); 168 const std::string& md5);
169 169
170 // Called when a file is pinned. 170 // Called when a file is pinned.
171 void OnPinned(base::PlatformFileError error, 171 void OnPinned(base::PlatformFileError error,
172 const std::string& resource_id, 172 const std::string& resource_id,
173 const std::string& md5); 173 const std::string& md5);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 bool sync_loop_is_running_; 210 bool sync_loop_is_running_;
211 211
212 base::WeakPtrFactory<GDataSyncClient> weak_ptr_factory_; 212 base::WeakPtrFactory<GDataSyncClient> weak_ptr_factory_;
213 213
214 DISALLOW_COPY_AND_ASSIGN(GDataSyncClient); 214 DISALLOW_COPY_AND_ASSIGN(GDataSyncClient);
215 }; 215 };
216 216
217 } // namespace gdata 217 } // namespace gdata
218 218
219 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYNC_CLIENT_H_ 219 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_SYNC_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698