| 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/gdata/gdata_wapi_service.h" | 5 #include "chrome/browser/chromeos/gdata/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" |
| 11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
| 12 #include "chrome/browser/chromeos/gdata/drive_api_operations.h" | |
| 13 #include "chrome/browser/chromeos/gdata/gdata_operations.h" | 12 #include "chrome/browser/chromeos/gdata/gdata_operations.h" |
| 14 #include "chrome/browser/chromeos/gdata/gdata_util.h" | |
| 15 #include "chrome/browser/chromeos/gdata/operation_runner.h" | 13 #include "chrome/browser/chromeos/gdata/operation_runner.h" |
| 14 #include "chrome/browser/google_api/drive_api_operations.h" |
| 15 #include "chrome/browser/google_api/gdata_util.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/common/net/url_util.h" | 17 #include "chrome/common/net/url_util.h" |
| 18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 19 | 19 |
| 20 using content::BrowserThread; | 20 using content::BrowserThread; |
| 21 | 21 |
| 22 namespace gdata { | 22 namespace gdata { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 return runner_->auth_service()->HasRefreshToken(); | 314 return runner_->auth_service()->HasRefreshToken(); |
| 315 } | 315 } |
| 316 | 316 |
| 317 void GDataWapiService::OnOAuth2RefreshTokenChanged() { | 317 void GDataWapiService::OnOAuth2RefreshTokenChanged() { |
| 318 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 318 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 319 FOR_EACH_OBSERVER( | 319 FOR_EACH_OBSERVER( |
| 320 DriveServiceObserver, observers_, OnOperationReadinessChanged()); | 320 DriveServiceObserver, observers_, OnOperationReadinessChanged()); |
| 321 } | 321 } |
| 322 | 322 |
| 323 } // namespace gdata | 323 } // namespace gdata |
| OLD | NEW |