summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/drive/drive_file_system_interface.h
diff options
context:
space:
mode:
authorhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-12 21:25:48 +0000
committerhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-12 21:25:48 +0000
commit9d197c7601597d3428d3d4ed68c6808a0e90d4ee (patch)
treedd58fbe2b2bdd2b08239b9631bdabe7ef573691e /chrome/browser/chromeos/drive/drive_file_system_interface.h
parentf2c35caaa0318dbe21582e84420eb6d8ed01910b (diff)
downloadchromium_src-9d197c7601597d3428d3d4ed68c6808a0e90d4ee.zip
chromium_src-9d197c7601597d3428d3d4ed68c6808a0e90d4ee.tar.gz
chromium_src-9d197c7601597d3428d3d4ed68c6808a0e90d4ee.tar.bz2
Implement CancelGetFile on DriveFileSystem.
This method will be used to refactor DriveURLRequestJob for testing. BUG=159383 TEST=Ran unit_tests. Review URL: https://chromiumcodereview.appspot.com/12638025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/drive/drive_file_system_interface.h')
-rw-r--r--chrome/browser/chromeos/drive/drive_file_system_interface.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/drive/drive_file_system_interface.h b/chrome/browser/chromeos/drive/drive_file_system_interface.h
index 868b574..c3ea2fc 100644
--- a/chrome/browser/chromeos/drive/drive_file_system_interface.h
+++ b/chrome/browser/chromeos/drive/drive_file_system_interface.h
@@ -265,6 +265,20 @@ class DriveFileSystemInterface {
const GetFileCallback& get_file_callback,
const google_apis::GetContentCallback& get_content_callback) = 0;
+ // Cancels the file fetch of |drive_file_path|, which can be retieved by
+ // GetEntryInfoByResourceId.
+ // The currently the running task is identified by file path on drive,
+ // so this method takes it as a task identifier.
+ // Note that we will moving tha task managing into DriveScheduler, and
+ // currently it is planned to use some task ID at that time.
+ // Once it is done, we can use the ID from this method.
+ // Also note that the interface looks a little bit weird because the task
+ // is started by GetFileByResourceId, which identifies a file by
+ // |resource_id|, but this method does by |drive_file_path|. This
+ // inconsistency is introduced to work with the existing code and should be
+ // cleaned up.
+ virtual void CancelGetFile(const base::FilePath& drive_file_path) = 0;
+
// Updates a file by the given |resource_id| on the Drive server by
// uploading an updated version. Used for uploading dirty files. The file
// should already be present in the cache.