Index: chrome/browser/chromeos/gdata/gdata_files.h |
diff --git a/chrome/browser/chromeos/gdata/gdata_files.h b/chrome/browser/chromeos/gdata/gdata_files.h |
index e53102a140e14b73c00c6ccbd7921454e1172d23..c2d79f29a210f691039b177acaf90d44aea85398 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_files.h |
+++ b/chrome/browser/chromeos/gdata/gdata_files.h |
@@ -138,6 +138,12 @@ class GDataEntry { |
// delta feeds. |
bool is_deleted() const { return deleted_; } |
+ // True if the entry is not bound to any file system (i.e. doesn't have a root |
+ // directory set). E.g. |fake_search_directory| below. |
+ // NOTE: GDataRootDirectories will return true here, since they have |
+ // themselves as root directories. |
+ bool is_detached() const { return root_ == NULL; } |
+ |
// Returns virtual file path representing this file system entry. This path |
// corresponds to file path expected by public methods of GDataFileSyste |
// class. |
@@ -496,9 +502,24 @@ class GDataRootDirectory : public GDataDirectory { |
void ToProto(GDataRootDirectoryProto* proto) const; |
private: |
+ // Used in |FindEntryByPath| if the path that is being searched for is |
+ // pointing to a search result path. The find path parameters should be |
satorux1
2012/05/04 01:48:40
find path parameters -> find entry parameters
|
+ // modified to point to the actual file system entry bound to the search |
+ // result. |
satorux1
2012/05/04 01:48:40
this function is rather tricky. could you illustra
|
+ bool ModifyFindEntryParamsIfSearchPath( |
+ const FilePath& file_path, |
+ std::vector<FilePath::StringType>* components, |
+ GDataDirectory** current_dir, |
+ FilePath* directory_path); |
+ |
ResourceMap resource_map_; |
CacheMap cache_map_; |
+ // Fake directory that will be returned when searching for content search |
+ // paths to make file manager happy when resolving paths. This directory |
+ // should never be used for file operations or storing file entries. |
+ scoped_ptr<GDataDirectory> fake_search_directory_; |
+ |
base::Time last_serialized_; |
int largest_changestamp_; |
size_t serialized_size_; |