| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_LOGIN_SAML_SAML_OFFLINE_SIGNIN_LIMITER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SAML_SAML_OFFLINE_SIGNIN_LIMITER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SAML_SAML_OFFLINE_SIGNIN_LIMITER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SAML_SAML_OFFLINE_SIGNIN_LIMITER_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "base/time/default_clock.h" | 11 #include "base/time/default_clock.h" |
| 11 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 12 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
| 13 #include "chromeos/login/auth/user_context.h" | 14 #include "chromeos/login/auth/user_context.h" |
| 14 #include "components/keyed_service/core/keyed_service.h" | 15 #include "components/keyed_service/core/keyed_service.h" |
| 15 #include "components/prefs/pref_change_registrar.h" | 16 #include "components/prefs/pref_change_registrar.h" |
| 16 | 17 |
| 17 class Profile; | 18 class Profile; |
| 18 | 19 |
| 19 namespace base { | 20 namespace base { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // to use online authentication against GAIA. | 60 // to use online authentication against GAIA. |
| 60 void ForceOnlineLogin(); | 61 void ForceOnlineLogin(); |
| 61 | 62 |
| 62 base::DefaultClock default_clock_; | 63 base::DefaultClock default_clock_; |
| 63 | 64 |
| 64 Profile* profile_; | 65 Profile* profile_; |
| 65 base::Clock* clock_; | 66 base::Clock* clock_; |
| 66 | 67 |
| 67 PrefChangeRegistrar pref_change_registrar_; | 68 PrefChangeRegistrar pref_change_registrar_; |
| 68 | 69 |
| 69 scoped_ptr<base::OneShotTimer> offline_signin_limit_timer_; | 70 std::unique_ptr<base::OneShotTimer> offline_signin_limit_timer_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(SAMLOfflineSigninLimiter); | 72 DISALLOW_COPY_AND_ASSIGN(SAMLOfflineSigninLimiter); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace chromeos | 75 } // namespace chromeos |
| 75 | 76 |
| 76 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SAML_SAML_OFFLINE_SIGNIN_LIMITER_H_ | 77 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SAML_SAML_OFFLINE_SIGNIN_LIMITER_H_ |
| OLD | NEW |