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

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

Issue 13602003: Add new methods to DriveServiceInterface. These will replace GetResourceList. (Closed) Base URL: http://git.chromium.org/chromium/src.git@webkit_master
Patch Set: Created 7 years, 8 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 unified diff | Download patch
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_service.h" 5 #include "chrome/browser/google_apis/gdata_wapi_service.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 url_request_context_getter_, 231 url_request_context_getter_,
232 url_generator_, 232 url_generator_,
233 url, 233 url,
234 static_cast<int>(start_changestamp), 234 static_cast<int>(start_changestamp),
235 search_query, 235 search_query,
236 shared_with_me, 236 shared_with_me,
237 directory_resource_id, 237 directory_resource_id,
238 base::Bind(&ParseResourceListAndRun, callback))); 238 base::Bind(&ParseResourceListAndRun, callback)));
239 } 239 }
240 240
241 void GDataWapiService::GetAllResourceList(
242 const GetResourceListCallback& callback) {
243 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
244 DCHECK(!callback.is_null());
245
246 // TODO(hidehiko): Implement this.
247 NOTIMPLEMENTED();
248 }
249
250 void GDataWapiService::GetResourceListInDirectory(
251 const std::string& directory_resource_id,
252 const GetResourceListCallback& callback) {
253 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
254 DCHECK(!directory_resource_id.empty());
255 DCHECK(!callback.is_null());
256
257 // TODO(hidehiko): Implement this.
258 NOTIMPLEMENTED();
259 }
260
261 void GDataWapiService::Search(const std::string& search_query,
262 const GetResourceListCallback& callback) {
263 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
264 DCHECK(!search_query.empty());
265 DCHECK(!callback.is_null());
266
267 // TODO(hidehiko): Implement this.
268 NOTIMPLEMENTED();
269 }
270
271 void GDataWapiService::SearchInDirectory(
272 const std::string& search_query,
273 const std::string& directory_resource_id,
274 const GetResourceListCallback& callback) {
275 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
276 DCHECK(!search_query.empty());
277 DCHECK(!directory_resource_id.empty());
278 DCHECK(!callback.is_null());
279
280 // TODO(hidehiko): Implement this.
281 NOTIMPLEMENTED();
282 }
283
284 void GDataWapiService::GetChangeList(int64 start_changestamp,
285 const GetResourceListCallback& callback) {
286 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
287 DCHECK(!callback.is_null());
288
289 // TODO(hidehiko): Implement this.
290 NOTIMPLEMENTED();
291 }
292
293 void GDataWapiService::ContinueGetResourceList(
294 const GURL& override_url,
295 const GetResourceListCallback& callback) {
296 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
297 DCHECK(!callback.is_null());
298
299 // TODO(hidehiko): Implement this.
300 NOTIMPLEMENTED();
301 }
302
241 void GDataWapiService::GetResourceEntry( 303 void GDataWapiService::GetResourceEntry(
242 const std::string& resource_id, 304 const std::string& resource_id,
243 const GetResourceEntryCallback& callback) { 305 const GetResourceEntryCallback& callback) {
244 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 306 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
245 DCHECK(!callback.is_null()); 307 DCHECK(!callback.is_null());
246 308
247 runner_->StartOperationWithRetry( 309 runner_->StartOperationWithRetry(
248 new GetResourceEntryOperation( 310 new GetResourceEntryOperation(
249 operation_registry(), 311 operation_registry(),
250 url_request_context_getter_, 312 url_request_context_getter_,
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 } 620 }
559 621
560 void GDataWapiService::OnProgressUpdate( 622 void GDataWapiService::OnProgressUpdate(
561 const OperationProgressStatusList& list) { 623 const OperationProgressStatusList& list) {
562 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 624 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
563 FOR_EACH_OBSERVER( 625 FOR_EACH_OBSERVER(
564 DriveServiceObserver, observers_, OnProgressUpdate(list)); 626 DriveServiceObserver, observers_, OnProgressUpdate(list));
565 } 627 }
566 628
567 } // namespace google_apis 629 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.h ('k') | chrome/browser/google_apis/mock_drive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698