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..be670cc91beb61d557157b416beea07b12efce9d 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_files.h |
+++ b/chrome/browser/chromeos/gdata/gdata_files.h |
@@ -138,6 +138,10 @@ class GDataEntry { |
// delta feeds. |
bool is_deleted() const { return deleted_; } |
+ // True it the entry is not bound to any file system. |
+ // E.g. |fake_search_directory| below. |
satorux1
2012/05/03 17:58:34
What about GDataRootDirectory? What parent does it
tbarzic
2012/05/03 23:56:17
it doesn't have parents, but it has root_ (itself)
|
+ 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 +500,28 @@ 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 |
+ // modified to point to the actual file system entry bound to the search |
+ // result. |
+ // Returns false only if the path is a search result path and the entry can't |
+ // be found. |
+ bool ModifyFindEntryParamsIfSearchPath( |
+ const FilePath& file_path, |
+ std::vector<FilePath::StringType>* components, |
+ GDataDirectory** current_dir, |
+ FilePath* directory_path, |
+ GDataEntry** entry_to_return); |
satorux1
2012/05/03 17:58:34
This function seems to do more than just modifying
tbarzic
2012/05/03 23:56:17
moved part of implementation to FindEntryByPath
|
+ |
ResourceMap resource_map_; |
CacheMap cache_map_; |
+ // Fake directories that will be returned when searching for content search |
+ // paths to make file manager happy when resolving paths. These directories |
+ // should never be used for file operations or storing file entries. |
+ scoped_ptr<GDataDirectory> fake_search_directory_; |
+ scoped_ptr<GDataDirectory> fake_search_query_directory_; |
satorux1
2012/05/03 17:58:34
What are the differences between the two directori
tbarzic
2012/05/03 23:56:17
there's only semantic difference.. I'll get rid of
|
+ |
base::Time last_serialized_; |
int largest_changestamp_; |
size_t serialized_size_; |