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

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

Issue 10854199: ResourceId and unit test cleanup. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: minor Created 8 years, 4 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_DIRECTORY_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 // Removes |entry| from its parent. Calls |callback| with the path of the 175 // Removes |entry| from its parent. Calls |callback| with the path of the
176 // parent directory. |callback| may not be null. 176 // parent directory. |callback| may not be null.
177 void RemoveEntryFromParent(GDataEntry* entry, 177 void RemoveEntryFromParent(GDataEntry* entry,
178 const FileMoveCallback& callback); 178 const FileMoveCallback& callback);
179 179
180 // Adds the entry to resource map. 180 // Adds the entry to resource map.
181 void AddEntryToResourceMap(GDataEntry* entry); 181 void AddEntryToResourceMap(GDataEntry* entry);
182 182
183 // Removes the entry from resource map. 183 // Removes the entry from resource map.
184 void RemoveEntryFromResourceMap(GDataEntry* entry); 184 void RemoveEntryFromResourceMap(const std::string& resource_id);
satorux1 2012/08/17 11:49:17 nice! I guess you'll make it asynchronous in a sep
185 185
186 // Searches for |file_path| synchronously. 186 // Searches for |file_path| synchronously.
187 // TODO(satorux): Replace this with an async version crbug.com/137160 187 // TODO(satorux): Replace this with an async version crbug.com/137160
188 GDataEntry* FindEntryByPathSync(const FilePath& file_path); 188 GDataEntry* FindEntryByPathSync(const FilePath& file_path);
189 189
190 // Searches for |file_path| synchronously, and runs |callback|. 190 // Searches for |file_path| synchronously, and runs |callback|.
191 // TODO(satorux): Replace this with an async version crbug.com/137160 191 // TODO(satorux): Replace this with an async version crbug.com/137160
192 void FindEntryByPathAndRunSync(const FilePath& file_path, 192 void FindEntryByPathAndRunSync(const FilePath& file_path,
193 const FindEntryCallback& callback); 193 const FindEntryCallback& callback);
194 194
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // This should remain the last member so it'll be destroyed first and 305 // This should remain the last member so it'll be destroyed first and
306 // invalidate its weak pointers before other members are destroyed. 306 // invalidate its weak pointers before other members are destroyed.
307 base::WeakPtrFactory<GDataDirectoryService> weak_ptr_factory_; 307 base::WeakPtrFactory<GDataDirectoryService> weak_ptr_factory_;
308 308
309 DISALLOW_COPY_AND_ASSIGN(GDataDirectoryService); 309 DISALLOW_COPY_AND_ASSIGN(GDataDirectoryService);
310 }; 310 };
311 311
312 } // namespace gdata 312 } // namespace gdata
313 313
314 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_ 314 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/gdata/gdata_directory_service.cc » ('j') | chrome/browser/chromeos/gdata/gdata_files.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698