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

Unified Diff: chrome/browser/chromeos/drive/resource_metadata.h

Issue 23571005: drive: Remove unused functions from ResourceMetadata. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « no previous file | chrome/browser/chromeos/drive/resource_metadata.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/resource_metadata.h
diff --git a/chrome/browser/chromeos/drive/resource_metadata.h b/chrome/browser/chromeos/drive/resource_metadata.h
index a5b20afdcc04f582b55e3021a2d36c21d6c6000c..ba447475745ae5ebb5ef9de5492e6153d94ad212 100644
--- a/chrome/browser/chromeos/drive/resource_metadata.h
+++ b/chrome/browser/chromeos/drive/resource_metadata.h
@@ -24,13 +24,6 @@ namespace drive {
typedef std::vector<ResourceEntry> ResourceEntryVector;
-
-// Callback similar to FileOperationCallback but with a given |file_path|.
-// Used for operations that change a file path like moving files.
-typedef base::Callback<void(FileError error,
- const base::FilePath& file_path)>
- FileMoveCallback;
-
// Used to get a resource entry from the file system.
// If |error| is not FILE_ERROR_OK, |entry_info| is set to NULL.
typedef base::Callback<void(FileError error,
@@ -43,30 +36,6 @@ typedef base::Callback<void(FileError error,
typedef base::Callback<void(int64)> GetChangestampCallback;
-// This is a part of EntryInfoPairResult.
-struct EntryInfoResult {
- EntryInfoResult();
- ~EntryInfoResult();
-
- base::FilePath path;
- FileError error;
- scoped_ptr<ResourceEntry> entry;
-};
-
-// The result of GetResourceEntryPairCallback(). Used to get a pair of entries
-// in one function call.
-struct EntryInfoPairResult {
- EntryInfoPairResult();
- ~EntryInfoPairResult();
-
- EntryInfoResult first;
- EntryInfoResult second; // Only filled if the first entry is found.
-};
-
-// Used to receive the result from GetResourceEntryPairCallback().
-typedef base::Callback<void(scoped_ptr<EntryInfoPairResult> pair_result)>
- GetResourceEntryPairCallback;
-
typedef base::Callback<void(const ResourceEntry& entry)> IterateCallback;
namespace internal {
@@ -147,16 +116,6 @@ class ResourceMetadata {
FileError ReadDirectoryByPath(const base::FilePath& file_path,
ResourceEntryVector* out_entries);
- // Similar to GetResourceEntryByPath() but this function finds a pair of
- // entries by |first_path| and |second_path|. If the entry for
- // |first_path| is not found, this function does not try to get the
- // entry of |second_path|. |callback| must not be null.
- // Must be called on the UI thread.
- void GetResourceEntryPairByPathsOnUIThread(
- const base::FilePath& first_path,
- const base::FilePath& second_path,
- const GetResourceEntryPairCallback& callback);
-
// Replaces an existing entry whose ID is |id| with |entry|.
FileError RefreshEntry(const std::string& id, const ResourceEntry& entry);
@@ -193,25 +152,6 @@ class ResourceMetadata {
// Used to implement Destroy().
void DestroyOnBlockingPool();
- // Continues with GetResourceEntryPairByPathsOnUIThread after the first
- // entry has been asynchronously fetched. This fetches the second entry
- // only if the first was found.
- void GetResourceEntryPairByPathsOnUIThreadAfterGetFirst(
- const base::FilePath& first_path,
- const base::FilePath& second_path,
- const GetResourceEntryPairCallback& callback,
- FileError error,
- scoped_ptr<ResourceEntry> entry);
-
- // Continues with GetResourceEntryPairByPathsOnUIThread after the second
- // entry has been asynchronously fetched.
- void GetResourceEntryPairByPathsOnUIThreadAfterGetSecond(
- const base::FilePath& second_path,
- const GetResourceEntryPairCallback& callback,
- scoped_ptr<EntryInfoPairResult> result,
- FileError error,
- scoped_ptr<ResourceEntry> entry);
-
// Puts an entry under its parent directory. Removes the child from the old
// parent if there is. This method will also do name de-duplication to ensure
// that the exposed presentation path does not have naming conflicts. Two
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/resource_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698