diff options
author | kochi@chromium.org <kochi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-23 16:28:15 +0000 |
---|---|---|
committer | kochi@chromium.org <kochi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-23 16:28:15 +0000 |
commit | 11f60db5baba6b239972e6aa1866bbd252aca2e4 (patch) | |
tree | 57117dc44e75e6d0e25e9e3031387b42ea05e1f7 /chrome/browser/chromeos/gdata/drive_cache.h | |
parent | 0a1808bacff8883c5edd630e61883b715d89768f (diff) | |
download | chromium_src-11f60db5baba6b239972e6aa1866bbd252aca2e4.zip chromium_src-11f60db5baba6b239972e6aa1866bbd252aca2e4.tar.gz chromium_src-11f60db5baba6b239972e6aa1866bbd252aca2e4.tar.bz2 |
Rename GDataErrorCode to DriveErrorCode, GDataFileError to DriveFileError
In this CL, folloing changes are contained:
* gdata_errocode.h has been renamed to drive_errocode.h
* enum GDataErrorCode has been renamed to DriveErrorCode
* enum GDataFileError has been renamed to DriveFileError
* error codes in GDataErrorCode and GDataFileError whose prefix is "GDATA_"
have been renamed to "DRIVE_*"
BUG=137151
TEST=pass all existing tests
TBR=derat@chromium.org, abodenha@chromium.org, estade@chromium.org, satorux@chromium.org, ben@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10877006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153005 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/gdata/drive_cache.h')
-rw-r--r-- | chrome/browser/chromeos/gdata/drive_cache.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/chrome/browser/chromeos/gdata/drive_cache.h b/chrome/browser/chromeos/gdata/drive_cache.h index 00715c6..2b43e6e 100644 --- a/chrome/browser/chromeos/gdata/drive_cache.h +++ b/chrome/browser/chromeos/gdata/drive_cache.h @@ -31,17 +31,17 @@ class DriveCacheEntry; class DriveCacheMetadata; // Callback for SetMountedStateOnUIThread and ClearAllOnUIThread. -typedef base::Callback<void(GDataFileError error, +typedef base::Callback<void(DriveFileError error, const FilePath& file_path)> ChangeCacheStateCallback; // Callback for completion of cache operation. -typedef base::Callback<void(GDataFileError error, +typedef base::Callback<void(DriveFileError error, const std::string& resource_id, const std::string& md5)> CacheOperationCallback; // Callback for GetFileFromCache. -typedef base::Callback<void(GDataFileError error, +typedef base::Callback<void(DriveFileError error, const std::string& resource_id, const std::string& md5, const FilePath& cache_file_path)> @@ -358,7 +358,7 @@ class DriveCache { // Used to implement GetFileOnUIThread. void GetFile(const std::string& resource_id, const std::string& md5, - GDataFileError* error, + DriveFileError* error, FilePath* cache_file_path); // Used to implement StoreOnUIThread. @@ -366,66 +366,66 @@ class DriveCache { const std::string& md5, const FilePath& source_path, FileOperationType file_operation_type, - GDataFileError* error); + DriveFileError* error); // Used to implement PinOnUIThread. void Pin(const std::string& resource_id, const std::string& md5, FileOperationType file_operation_type, - GDataFileError* error); + DriveFileError* error); // Used to implement UnpinOnUIThread. void Unpin(const std::string& resource_id, const std::string& md5, FileOperationType file_operation_type, - GDataFileError* error); + DriveFileError* error); // Used to implement SetMountedStateOnUIThread. void SetMountedState(const FilePath& file_path, bool to_mount, - GDataFileError* error, + DriveFileError* error, FilePath* cache_file_path); // Used to implement MarkDirtyOnUIThread. void MarkDirty(const std::string& resource_id, const std::string& md5, FileOperationType file_operation_type, - GDataFileError* error, + DriveFileError* error, FilePath* cache_file_path); // Used to implement CommitDirtyOnUIThread. void CommitDirty(const std::string& resource_id, const std::string& md5, FileOperationType file_operation_type, - GDataFileError* error); + DriveFileError* error); // Used to implement ClearDirtyOnUIThread. void ClearDirty(const std::string& resource_id, const std::string& md5, FileOperationType file_operation_type, - GDataFileError* error); + DriveFileError* error); // Used to implement RemoveOnUIThread. void Remove(const std::string& resource_id, - GDataFileError* error); + DriveFileError* error); // Used to implement ClearAllUIThread. - void ClearAll(GDataFileError* error); + void ClearAll(DriveFileError* error); // Runs callback and notifies the observers when file is pinned. - void OnPinned(GDataFileError* error, + void OnPinned(DriveFileError* error, const std::string& resource_id, const std::string& md5, const CacheOperationCallback& callback); // Runs callback and notifies the observers when file is unpinned. - void OnUnpinned(GDataFileError* error, + void OnUnpinned(DriveFileError* error, const std::string& resource_id, const std::string& md5, const CacheOperationCallback& callback); // Runs callback and notifies the observers when file is committed. - void OnCommitDirty(GDataFileError* error, + void OnCommitDirty(DriveFileError* error, const std::string& resource_id, const std::string& md5, const CacheOperationCallback& callback); |