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

Unified Diff: chrome/browser/chromeos/drive/drive_protocol_handler.cc

Issue 11106007: drive: Rename 'gdata' namespace to 'drive' in chrome/browser/chromeos/drive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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/drive/drive_protocol_handler.cc
diff --git a/chrome/browser/chromeos/drive/drive_protocol_handler.cc b/chrome/browser/chromeos/drive/drive_protocol_handler.cc
index 5e36459e874d67b4717f3125ebb21ce0f92b7a41..3582c2d6923af6bfb3c2814b0dcc483cecc012b0 100644
--- a/chrome/browser/chromeos/drive/drive_protocol_handler.cc
+++ b/chrome/browser/chromeos/drive/drive_protocol_handler.cc
@@ -38,7 +38,7 @@
using content::BrowserThread;
-namespace gdata {
+namespace drive {
namespace {
@@ -153,7 +153,7 @@ class DriveURLRequestJob : public net::URLRequestJob {
// For detailed description of logic, refer to comments in definitions of
// Start() and ReadRawData().
- void OnUrlFetchDownloadData(GDataErrorCode error,
+ void OnUrlFetchDownloadData(gdata::GDataErrorCode error,
scoped_ptr<std::string> download_data);
// Called from ReadRawData, returns true if data is ready, false otherwise.
bool ContinueReadFromDownloadData(int* bytes_read);
@@ -261,7 +261,7 @@ void DriveURLRequestJob::Start() {
// 5) Find file from file system to get its mime type, drive file path and
// size of physical file.
// 6) Get file from file system asynchronously with both GetFileCallback and
- // GetContentCallback - this would either get it from cache or
+ // gdata::GetContentCallback - this would either get it from cache or
// download it from Drive.
// 7) If file is downloaded from Drive:
// 7.1) Whenever net::URLFetcherCore::OnReadCompleted() receives a part
@@ -271,9 +271,9 @@ void DriveURLRequestJob::Start() {
// 7.2) gdata::DownloadFileOperation overrides the default implementations
// of the following methods of net::URLFetcherDelegate:
// - ShouldSendDownloadData(): returns true for non-null
- // GetContentCallback.
+ // gdata::GetContentCallback.
// - OnURLFetchDownloadData(): invokes non-null
- // GetContentCallback
+ // gdata::GetContentCallback
// 7.3) DriveProtolHandler::OnURLFetchDownloadData (i.e. this class)
// is at the end of the invocation chain and actually implements the
// method.
@@ -537,7 +537,7 @@ void DriveURLRequestJob::OnGetEntryInfoByResourceId(
}
void DriveURLRequestJob::OnUrlFetchDownloadData(
- GDataErrorCode error,
+ gdata::GDataErrorCode error,
scoped_ptr<std::string> download_data) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -940,4 +940,4 @@ net::URLRequestJob* DriveProtocolHandler::MaybeCreateJob(
return new DriveURLRequestJob(request, network_delegate);
}
-} // namespace gdata
+} // namespace drive
« no previous file with comments | « chrome/browser/chromeos/drive/drive_protocol_handler.h ('k') | chrome/browser/chromeos/drive/drive_resource_metadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698