| OLD | NEW |
| 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/drive/drive_api_service.h" | 5 #include "chrome/browser/chromeos/drive/drive_api_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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 const GURL& resource_url, | 230 const GURL& resource_url, |
| 231 const google_apis::EntryActionCallback& callback) { | 231 const google_apis::EntryActionCallback& callback) { |
| 232 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 232 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 233 | 233 |
| 234 // TODO(kochi): Implement this. | 234 // TODO(kochi): Implement this. |
| 235 NOTREACHED(); | 235 NOTREACHED(); |
| 236 } | 236 } |
| 237 | 237 |
| 238 void DriveAPIService::RemoveResourceFromDirectory( | 238 void DriveAPIService::RemoveResourceFromDirectory( |
| 239 const GURL& parent_content_url, | 239 const GURL& parent_content_url, |
| 240 const GURL& resource_url, | |
| 241 const std::string& resource_id, | 240 const std::string& resource_id, |
| 242 const google_apis::EntryActionCallback& callback) { | 241 const google_apis::EntryActionCallback& callback) { |
| 243 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 242 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 244 | 243 |
| 245 // TODO(kochi): Implement this. | 244 // TODO(kochi): Implement this. |
| 246 NOTREACHED(); | 245 NOTREACHED(); |
| 247 } | 246 } |
| 248 | 247 |
| 249 void DriveAPIService::InitiateUpload( | 248 void DriveAPIService::InitiateUpload( |
| 250 const google_apis::InitiateUploadParams& params, | 249 const google_apis::InitiateUploadParams& params, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 307 |
| 309 void DriveAPIService::OnAuthenticationFailed( | 308 void DriveAPIService::OnAuthenticationFailed( |
| 310 google_apis::GDataErrorCode error) { | 309 google_apis::GDataErrorCode error) { |
| 311 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 310 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 312 FOR_EACH_OBSERVER( | 311 FOR_EACH_OBSERVER( |
| 313 google_apis::DriveServiceObserver, observers_, | 312 google_apis::DriveServiceObserver, observers_, |
| 314 OnAuthenticationFailed(error)); | 313 OnAuthenticationFailed(error)); |
| 315 } | 314 } |
| 316 | 315 |
| 317 } // namespace drive | 316 } // namespace drive |
| OLD | NEW |