diff options
Diffstat (limited to 'chrome/browser/chromeos/gdata/gdata_util.h')
-rw-r--r-- | chrome/browser/chromeos/gdata/gdata_util.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/chrome/browser/chromeos/gdata/gdata_util.h b/chrome/browser/chromeos/gdata/gdata_util.h index 7ce9393..4d4ce65 100644 --- a/chrome/browser/chromeos/gdata/gdata_util.h +++ b/chrome/browser/chromeos/gdata/gdata_util.h @@ -19,23 +19,6 @@ class Profile; namespace gdata { namespace util { -// Search path is a path used to display gdata content search results. -// All results are displayed under virtual directory "drive/.search", in which -// each query is given its own directory for displaying results. -enum GDataSearchPathType { - // Not a search path. - GDATA_SEARCH_PATH_INVALID, - // drive/.search. - GDATA_SEARCH_PATH_ROOT, - // Path that defines search query (drive/.search/foo). - GDATA_SEARCH_PATH_QUERY, - // Path given to a search result (drive/.search/foo/foo_found). - // The file name will be formatted: "resource_id.file_name". - GDATA_SEARCH_PATH_RESULT, - // If search result is directory, it may contain some children. - GDATA_SEARCH_PATH_RESULT_CHILD -}; - // Path constants extern const char kMountedArchiveFileExtension[]; extern const char kWildCard[]; @@ -62,22 +45,6 @@ void ModifyGDataFileResourceUrl(Profile* profile, // Returns true if the given path is under the GData mount point. bool IsUnderGDataMountPoint(const FilePath& path); -// Checks if the path is under (virtual) gdata search directory, and returns its -// search status. -GDataSearchPathType GetSearchPathStatus(const FilePath& path); - -// Checks if the path is under (virtual) gdata earch directory, and returns its -// search status. -GDataSearchPathType GetSearchPathStatusForPathComponents( - const std::vector<std::string>& path_components); - -// Gets resource id and original file name from the search file name. -// Search file name is formatted as: <resource_id>.<original_file_name>. -// If the path is not search path, the behaviour is not defined. -bool ParseSearchFileName(const std::string& search_file_name, - std::string* resource_id, - std::string* original_file_name); - // Extracts the GData path from the given path located under the GData mount // point. Returns an empty path if |path| is not under the GData mount point. // Examples: ExtractGDatPath("/special/drive/foo.txt") => "drive/foo.txt" |