| 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/drive/drive_api_service.h" | 5 #include "chrome/browser/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" |
| 11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/task_runner_util.h" | 13 #include "base/task_runner_util.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/drive/drive_api_util.h" | 15 #include "chrome/browser/drive/drive_api_util.h" |
| 16 #include "chrome/browser/google_apis/auth_service.h" | |
| 17 #include "chrome/browser/google_apis/drive_api_parser.h" | |
| 18 #include "chrome/browser/google_apis/drive_api_requests.h" | |
| 19 #include "chrome/browser/google_apis/gdata_errorcode.h" | |
| 20 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | |
| 21 #include "chrome/browser/google_apis/gdata_wapi_requests.h" | |
| 22 #include "chrome/browser/google_apis/request_sender.h" | |
| 23 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 17 #include "google_apis/drive/auth_service.h" |
| 18 #include "google_apis/drive/drive_api_parser.h" |
| 19 #include "google_apis/drive/drive_api_requests.h" |
| 20 #include "google_apis/drive/gdata_errorcode.h" |
| 21 #include "google_apis/drive/gdata_wapi_parser.h" |
| 22 #include "google_apis/drive/gdata_wapi_requests.h" |
| 23 #include "google_apis/drive/request_sender.h" |
| 24 #include "net/url_request/url_request_context_getter.h" | 24 #include "net/url_request/url_request_context_getter.h" |
| 25 | 25 |
| 26 using content::BrowserThread; | 26 using content::BrowserThread; |
| 27 using google_apis::AppList; | 27 using google_apis::AppList; |
| 28 using google_apis::AppListCallback; | 28 using google_apis::AppListCallback; |
| 29 using google_apis::AuthStatusCallback; | 29 using google_apis::AuthStatusCallback; |
| 30 using google_apis::AuthorizeAppCallback; | 30 using google_apis::AuthorizeAppCallback; |
| 31 using google_apis::CancelCallback; | 31 using google_apis::CancelCallback; |
| 32 using google_apis::ChangeList; | 32 using google_apis::ChangeList; |
| 33 using google_apis::DownloadActionCallback; | 33 using google_apis::DownloadActionCallback; |
| (...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 if (CanSendRequest()) { | 893 if (CanSendRequest()) { |
| 894 FOR_EACH_OBSERVER( | 894 FOR_EACH_OBSERVER( |
| 895 DriveServiceObserver, observers_, OnReadyToSendRequests()); | 895 DriveServiceObserver, observers_, OnReadyToSendRequests()); |
| 896 } else if (!HasRefreshToken()) { | 896 } else if (!HasRefreshToken()) { |
| 897 FOR_EACH_OBSERVER( | 897 FOR_EACH_OBSERVER( |
| 898 DriveServiceObserver, observers_, OnRefreshTokenInvalid()); | 898 DriveServiceObserver, observers_, OnRefreshTokenInvalid()); |
| 899 } | 899 } |
| 900 } | 900 } |
| 901 | 901 |
| 902 } // namespace drive | 902 } // namespace drive |
| OLD | NEW |