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

Unified Diff: chrome/browser/chromeos/gdata/gdata_protocol_handler.cc

Issue 10877006: Rename GDataErrorCode to DriveErrorCode, GDataFileError to DriveFileError (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 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
Index: chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc b/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
index bb554aafc60084438b8099f37ca904e1ba638ea9..d9df62e038ca4a25aa79dc990c3f64913c8c7eae 100644
--- a/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
+++ b/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
@@ -18,8 +18,8 @@
#include "base/threading/sequenced_worker_pool.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/chromeos/gdata/drive.pb.h"
+#include "chrome/browser/chromeos/gdata/drive_errorcode.h"
#include "chrome/browser/chromeos/gdata/drive_service_interface.h"
-#include "chrome/browser/chromeos/gdata/gdata_errorcode.h"
#include "chrome/browser/chromeos/gdata/gdata_file_system_interface.h"
#include "chrome/browser/chromeos/gdata/gdata_system_service.h"
#include "chrome/browser/chromeos/gdata/gdata_util.h"
@@ -154,7 +154,7 @@ class GDataURLRequestJob : public net::URLRequestJob {
// For detailed description of logic, refer to comments in definitions of
// Start() and ReadRawData().
- void OnUrlFetchDownloadData(GDataErrorCode error,
+ void OnUrlFetchDownloadData(DriveErrorCode error,
scoped_ptr<std::string> download_data);
// Called from ReadRawData, returns true if data is ready, false otherwise.
bool ContinueReadFromDownloadData(int* bytes_read);
@@ -163,7 +163,7 @@ class GDataURLRequestJob : public net::URLRequestJob {
// Helper callback for handling async responses from
// GDataFileSystem::GetFileByResourceId().
- void OnGetFileByResourceId(GDataFileError error,
+ void OnGetFileByResourceId(DriveFileError error,
const FilePath& local_file_path,
const std::string& mime_type,
DriveFileType file_type);
@@ -174,7 +174,7 @@ class GDataURLRequestJob : public net::URLRequestJob {
// Helper callback for GetEntryInfoByResourceId invoked by StartAsync.
void OnGetEntryInfoByResourceId(const std::string& resource_id,
- GDataFileError error,
+ DriveFileError error,
const FilePath& gdata_file_path,
scoped_ptr<DriveEntryProto> entry_proto);
@@ -508,13 +508,13 @@ void GDataURLRequestJob::StartAsync(GDataFileSystemInterface** file_system) {
void GDataURLRequestJob::OnGetEntryInfoByResourceId(
const std::string& resource_id,
- GDataFileError error,
+ DriveFileError error,
const FilePath& gdata_file_path,
scoped_ptr<DriveEntryProto> entry_proto) {
if (entry_proto.get() && !entry_proto->has_file_specific_info())
- error = GDATA_FILE_ERROR_NOT_FOUND;
+ error = DRIVE_FILE_ERROR_NOT_FOUND;
- if (error == GDATA_FILE_OK) {
+ if (error == DRIVE_FILE_OK) {
DCHECK(entry_proto.get());
mime_type_ = entry_proto->file_specific_info().content_mime_type();
gdata_file_path_ = gdata_file_path;
@@ -536,7 +536,7 @@ void GDataURLRequestJob::OnGetEntryInfoByResourceId(
}
void GDataURLRequestJob::OnUrlFetchDownloadData(
- GDataErrorCode error,
+ DriveErrorCode error,
scoped_ptr<std::string> download_data) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -654,14 +654,14 @@ bool GDataURLRequestJob::ReadFromDownloadData() {
}
void GDataURLRequestJob::OnGetFileByResourceId(
- GDataFileError error,
+ DriveFileError error,
const FilePath& local_file_path,
const std::string& mime_type,
DriveFileType file_type) {
DVLOG(1) << "Got OnGetFileByResourceId";
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- if (error != GDATA_FILE_OK || file_type != REGULAR_FILE) {
+ if (error != DRIVE_FILE_OK || file_type != REGULAR_FILE) {
LOG(WARNING) << "Failed to start request: can't get file for resource id";
NotifyStartError(net::URLRequestStatus(net::URLRequestStatus::FAILED,
net::ERR_FILE_NOT_FOUND));

Powered by Google App Engine
This is Rietveld 408576698