summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/gdata/gdata_files.h
diff options
context:
space:
mode:
authortbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-19 02:55:44 +0000
committertbarzic@chromium.org <tbarzic@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-19 02:55:44 +0000
commitf98ac64588453aec3fc63070c5d3a4d96662221a (patch)
tree4ed89c558ca6b7707fa0e2296827f74494e499b1 /chrome/browser/chromeos/gdata/gdata_files.h
parent146be2e5165365b500fd573769c4fb53343d6276 (diff)
downloadchromium_src-f98ac64588453aec3fc63070c5d3a4d96662221a.zip
chromium_src-f98ac64588453aec3fc63070c5d3a4d96662221a.tar.gz
chromium_src-f98ac64588453aec3fc63070c5d3a4d96662221a.tar.bz2
Remove (hacky) handling for drive/.search paths from gdata file system.
We don't need this anymore. NOTE: this shouldn't go in before: http://codereview.chromium.org/10539165/ TEST=existing tests. (manual: confirmed drive search still works in file browser) BUG=129068 Review URL: https://chromiumcodereview.appspot.com/10562016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142906 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/gdata/gdata_files.h')
-rw-r--r--chrome/browser/chromeos/gdata/gdata_files.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/chrome/browser/chromeos/gdata/gdata_files.h b/chrome/browser/chromeos/gdata/gdata_files.h
index d954b21..ce73e27 100644
--- a/chrome/browser/chromeos/gdata/gdata_files.h
+++ b/chrome/browser/chromeos/gdata/gdata_files.h
@@ -8,7 +8,6 @@
#include <map>
#include <string>
-#include <vector>
#include "base/callback.h"
#include "base/gtest_prod_util.h"
@@ -146,12 +145,6 @@ 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.
@@ -388,39 +381,8 @@ 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 entry parameters should be
- // modified to point to the actual file system entry that is referenced by
- // virtual search path.
- // Search path is formatted: <search_result_path><search_result_child_path>.
- // <search_result_child_path> is used when search result is directory, and is
- // relative to search result path (id references some content inside search
- // result).
- // Search result file name will be formatted <resource_id>.<file_name>.
- // We can define "search result path references gdata entry" for gdata search
- // results by:
- // Entry that whose file name is <file_name>, and has the same parent as
- // the entry with resource id <resource_id>. This definition enables us to
- // test uniqueness of the proposed name when renaming gdata search result.
- //
- // For example, if drive/.search/foo/res_id.foo_name references
- // drive/result_parent/result, and the search path is
- // drive/.search/foo/res_ud.foo_name/foo_child, we'll set current dir to the
- // entry with path reulst_parent, and components to [result_parent, result,
- // foo_child].
- bool ModifyFindEntryParamsForSearchPath(
- const FilePath& file_path,
- std::vector<FilePath::StringType>* components,
- GDataDirectory** current_dir,
- FilePath* directory_path);
-
ResourceMap resource_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_;