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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata.cc

Issue 9719012: Revert 127317 - Implemented API for tracking ongoing file transfers from file manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
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/chromeos/gdata/gdata.h" 5 #include "chrome/browser/chromeos/gdata/gdata.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 190
191 void DocumentsService::Initialize(Profile* profile) { 191 void DocumentsService::Initialize(Profile* profile) {
192 profile_ = profile; 192 profile_ = profile;
193 // AddObserver() should be called before Initialize() as it could change 193 // AddObserver() should be called before Initialize() as it could change
194 // the refresh token. 194 // the refresh token.
195 gdata_auth_service_->AddObserver(this); 195 gdata_auth_service_->AddObserver(this);
196 gdata_auth_service_->Initialize(profile); 196 gdata_auth_service_->Initialize(profile);
197 } 197 }
198 198
199 GDataOperationRegistry* DocumentsService::operation_registry() const {
200 return operation_registry_.get();
201 }
202
203 void DocumentsService::CancelAll() { 199 void DocumentsService::CancelAll() {
204 operation_registry_->CancelAll(); 200 operation_registry_->CancelAll();
205 } 201 }
206 202
207 void DocumentsService::Authenticate(const AuthStatusCallback& callback) { 203 void DocumentsService::Authenticate(const AuthStatusCallback& callback) {
208 gdata_auth_service_->StartAuthentication(operation_registry_.get(), 204 gdata_auth_service_->StartAuthentication(operation_registry_.get(),
209 callback); 205 callback);
210 } 206 }
211 207
212 void DocumentsService::GetDocuments(const GURL& url, 208 void DocumentsService::GetDocuments(const GURL& url,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 void DocumentsService::RetryOperation(GDataOperationInterface* operation) { 373 void DocumentsService::RetryOperation(GDataOperationInterface* operation) {
378 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 374 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
379 375
380 gdata_auth_service_->ClearOAuth2Token(); 376 gdata_auth_service_->ClearOAuth2Token();
381 // User authentication might have expired - rerun the request to force 377 // User authentication might have expired - rerun the request to force
382 // auth token refresh. 378 // auth token refresh.
383 StartOperation(operation); 379 StartOperation(operation);
384 } 380 }
385 381
386 } // namespace gdata 382 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata.h ('k') | chrome/browser/chromeos/gdata/gdata_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698