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

Unified Diff: chrome/browser/chromeos/gdata/gdata_files.h

Issue 10204013: Move FindEntryDelegate and friends to separate file. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: change tense of comments Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_files.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_files.h
===================================================================
--- chrome/browser/chromeos/gdata/gdata_files.h (revision 133833)
+++ chrome/browser/chromeos/gdata/gdata_files.h (working copy)
@@ -24,6 +24,7 @@
namespace gdata {
+class FindEntryDelegate;
class GDataFile;
class GDataDirectory;
class GDataRootDirectory;
@@ -80,7 +81,7 @@
static scoped_ptr<GDataEntry> FromProtoString(
const std::string& serialized_proto);
- // Convert to/from proto.
+ // Converts to/from proto.
void FromProto(const GDataEntryProto& proto);
void ToProto(GDataEntryProto* proto) const;
@@ -185,7 +186,7 @@
DocumentEntry* doc,
GDataRootDirectory* root);
- // Convert to/from proto.
+ // Converts to/from proto.
void FromProto(const GDataFileProto& proto);
void ToProto(GDataFileProto* proto) const;
@@ -269,7 +270,7 @@
DocumentEntry* doc,
GDataRootDirectory* root);
- // Convert to/from proto.
+ // Converts to/from proto.
void FromProto(const GDataDirectoryProto& proto);
void ToProto(GDataDirectoryProto* proto) const;
@@ -413,19 +414,23 @@
// GDataEntry implementation.
virtual GDataRootDirectory* AsGDataRootDirectory() OVERRIDE;
- // Add the entry to resource map.
+ // Adds the entry to resource map.
void AddEntryToResourceMap(GDataEntry* entry);
- // Remove the entry from resource map.
+ // Removes the entry from resource map.
void RemoveEntryFromResourceMap(GDataEntry* entry);
- // Remove the entries from resource map.
+ // Removes the entries from resource map.
void RemoveEntriesFromResourceMap(const GDataFileCollection& children);
+ // Searches for |file_path| triggering callback in |delegate|.
+ void FindEntryByPath(const FilePath& file_path,
+ FindEntryDelegate* delegate);
+
// Returns the GDataEntry* with the corresponding |resource_id|.
GDataEntry* GetEntryByResourceId(const std::string& resource_id);
- // Set |cache_map_| data member to formal parameter |new_cache_map|.
+ // Sets |cache_map_| data member to formal parameter |new_cache_map|.
void SetCacheMap(const CacheMap& new_cache_map);
// Updates cache map with entry corresponding to |resource_id|.
@@ -446,14 +451,14 @@
CacheEntry* GetCacheEntry(const std::string& resource_id,
const std::string& md5);
- // Remove temporary files (files in CACHE_TYPE_TMP) from the cache map.
+ // Removes temporary files (files in CACHE_TYPE_TMP) from the cache map.
void RemoveTemporaryFilesFromCacheMap();
- // Serialize/Parse to/from string via proto classes.
+ // Serializes/Parses to/from string via proto classes.
void SerializeToString(std::string* serialized_proto) const;
bool ParseFromString(const std::string& serialized_proto);
- // Convert to/from proto.
+ // Converts to/from proto.
void FromProto(const GDataRootDirectoryProto& proto);
void ToProto(GDataRootDirectoryProto* proto) const;
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.cc ('k') | chrome/browser/chromeos/gdata/gdata_files.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698