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

Side by Side Diff: chrome/browser/google_apis/gdata_wapi_operations.cc

Issue 11316097: google_apis: Rename and simplify GenerateGetDocumentsURL() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/google_apis/gdata_wapi_url_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/google_apis/gdata_wapi_operations.h" 5 #include "chrome/browser/google_apis/gdata_wapi_operations.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/google_apis/gdata_wapi_parser.h" 10 #include "chrome/browser/google_apis/gdata_wapi_parser.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 override_url_(url), 119 override_url_(url),
120 start_changestamp_(start_changestamp), 120 start_changestamp_(start_changestamp),
121 search_string_(search_string), 121 search_string_(search_string),
122 shared_with_me_(shared_with_me), 122 shared_with_me_(shared_with_me),
123 directory_resource_id_(directory_resource_id) { 123 directory_resource_id_(directory_resource_id) {
124 } 124 }
125 125
126 GetDocumentsOperation::~GetDocumentsOperation() {} 126 GetDocumentsOperation::~GetDocumentsOperation() {}
127 127
128 GURL GetDocumentsOperation::GetURL() const { 128 GURL GetDocumentsOperation::GetURL() const {
129 return gdata_wapi_url_util::GenerateGetDocumentsURL(override_url_, 129 return gdata_wapi_url_util::GenerateDocumentListUrl(override_url_,
130 start_changestamp_, 130 start_changestamp_,
131 search_string_, 131 search_string_,
132 shared_with_me_, 132 shared_with_me_,
133 directory_resource_id_); 133 directory_resource_id_);
134 } 134 }
135 135
136 //============================ GetDocumentEntryOperation ======================= 136 //============================ GetDocumentEntryOperation =======================
137 137
138 GetDocumentEntryOperation::GetDocumentEntryOperation( 138 GetDocumentEntryOperation::GetDocumentEntryOperation(
139 OperationRegistry* registry, 139 OperationRegistry* registry,
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 return true; 810 return true;
811 } 811 }
812 812
813 void ResumeUploadOperation::OnURLFetchUploadProgress( 813 void ResumeUploadOperation::OnURLFetchUploadProgress(
814 const URLFetcher* source, int64 current, int64 total) { 814 const URLFetcher* source, int64 current, int64 total) {
815 // Adjust the progress values according to the range currently uploaded. 815 // Adjust the progress values according to the range currently uploaded.
816 NotifyProgress(params_.start_range + current, params_.content_length); 816 NotifyProgress(params_.start_range + current, params_.content_length);
817 } 817 }
818 818
819 } // namespace google_apis 819 } // namespace google_apis
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/google_apis/gdata_wapi_url_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698