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

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

Issue 12342008: Add GetAboutResource to DriveServiceInterface. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sort class forward declaration. Created 7 years, 10 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 DCHECK(!callback.is_null()); 277 DCHECK(!callback.is_null());
278 278
279 runner_->StartOperationWithRetry( 279 runner_->StartOperationWithRetry(
280 new GetAccountMetadataOperation( 280 new GetAccountMetadataOperation(
281 operation_registry(), 281 operation_registry(),
282 url_request_context_getter_, 282 url_request_context_getter_,
283 url_generator_, 283 url_generator_,
284 base::Bind(&ParseAccounetMetadataAndRun, callback))); 284 base::Bind(&ParseAccounetMetadataAndRun, callback)));
285 } 285 }
286 286
287 void GDataWapiService::GetAppList(const GetAppListCallback& callback) { 287 void GDataWapiService::GetAboutResource(
288 // For WAPI, AccountMetadata includes Drive application information, and 288 const GetAboutResourceCallback& callback) {
289 // this function is not used. 289 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
290 DCHECK(!callback.is_null());
291
292 // TODO(hidehiko): Implement this.
290 NOTREACHED(); 293 NOTREACHED();
291 } 294 }
292 295
296 void GDataWapiService::GetAppList(const GetAppListCallback& callback) {
297 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
298 DCHECK(!callback.is_null());
299
300 // TODO(hidehiko): Implement this.
301 NOTREACHED();
302 }
303
293 void GDataWapiService::DownloadFile( 304 void GDataWapiService::DownloadFile(
294 const base::FilePath& virtual_path, 305 const base::FilePath& virtual_path,
295 const base::FilePath& local_cache_path, 306 const base::FilePath& local_cache_path,
296 const GURL& download_url, 307 const GURL& download_url,
297 const DownloadActionCallback& download_action_callback, 308 const DownloadActionCallback& download_action_callback,
298 const GetContentCallback& get_content_callback) { 309 const GetContentCallback& get_content_callback) {
299 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 310 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
300 DCHECK(!download_action_callback.is_null()); 311 DCHECK(!download_action_callback.is_null());
301 // get_content_callback may be null. 312 // get_content_callback may be null.
302 313
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 } 544 }
534 545
535 void GDataWapiService::OnProgressUpdate( 546 void GDataWapiService::OnProgressUpdate(
536 const OperationProgressStatusList& list) { 547 const OperationProgressStatusList& list) {
537 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 548 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
538 FOR_EACH_OBSERVER( 549 FOR_EACH_OBSERVER(
539 DriveServiceObserver, observers_, OnProgressUpdate(list)); 550 DriveServiceObserver, observers_, OnProgressUpdate(list));
540 } 551 }
541 552
542 } // namespace google_apis 553 } // 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