| 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 #ifndef CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ |
| 6 #define CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ | 6 #define CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Overridden from KeyedService: | 45 // Overridden from KeyedService: |
| 46 virtual void Shutdown() OVERRIDE; | 46 virtual void Shutdown() OVERRIDE; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 FRIEND_TEST_ALL_PREFIXES(GAIAInfoUpdateServiceTest, ScheduleUpdate); | 49 FRIEND_TEST_ALL_PREFIXES(GAIAInfoUpdateServiceTest, ScheduleUpdate); |
| 50 | 50 |
| 51 void OnUsernameChanged(const std::string& username); | 51 void OnUsernameChanged(const std::string& username); |
| 52 void ScheduleNextUpdate(); | 52 void ScheduleNextUpdate(); |
| 53 | 53 |
| 54 // Overridden from SigninManagerBase::Observer: | 54 // Overridden from SigninManagerBase::Observer: |
| 55 virtual void GoogleSigninSucceeded(const std::string& username, | 55 virtual void GoogleSigninSucceeded(const std::string& account_id, |
| 56 const std::string& username, |
| 56 const std::string& password) OVERRIDE; | 57 const std::string& password) OVERRIDE; |
| 57 virtual void GoogleSignedOut(const std::string& username) OVERRIDE; | 58 virtual void GoogleSignedOut(const std::string& account_id, |
| 59 const std::string& username) OVERRIDE; |
| 58 | 60 |
| 59 Profile* profile_; | 61 Profile* profile_; |
| 60 scoped_ptr<ProfileDownloader> profile_image_downloader_; | 62 scoped_ptr<ProfileDownloader> profile_image_downloader_; |
| 61 base::Time last_updated_; | 63 base::Time last_updated_; |
| 62 base::OneShotTimer<GAIAInfoUpdateService> timer_; | 64 base::OneShotTimer<GAIAInfoUpdateService> timer_; |
| 63 | 65 |
| 64 DISALLOW_COPY_AND_ASSIGN(GAIAInfoUpdateService); | 66 DISALLOW_COPY_AND_ASSIGN(GAIAInfoUpdateService); |
| 65 }; | 67 }; |
| 66 | 68 |
| 67 #endif // CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ | 69 #endif // CHROME_BROWSER_PROFILES_GAIA_INFO_UPDATE_SERVICE_H_ |
| OLD | NEW |