OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SIGNIN_CROSS_DEVICE_PROMO_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_ |
6 #define CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_ | 6 #define CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_ |
7 | 7 |
8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "components/keyed_service/core/keyed_service.h" | 10 #include "components/keyed_service/core/keyed_service.h" |
(...skipping 26 matching lines...) Loading... |
37 ~CrossDevicePromo() override; | 37 ~CrossDevicePromo() override; |
38 | 38 |
39 // KeyedService: | 39 // KeyedService: |
40 void Shutdown() override; | 40 void Shutdown() override; |
41 | 41 |
42 void AddObserver(CrossDevicePromo::Observer* observer); | 42 void AddObserver(CrossDevicePromo::Observer* observer); |
43 void RemoveObserver(CrossDevicePromo::Observer* observer); | 43 void RemoveObserver(CrossDevicePromo::Observer* observer); |
44 | 44 |
45 // GaiaCookieManagerService::Observer: | 45 // GaiaCookieManagerService::Observer: |
46 void OnGaiaAccountsInCookieUpdated( | 46 void OnGaiaAccountsInCookieUpdated( |
47 const std::vector<std::pair<std::string, bool>>& accounts, | 47 const std::vector<gaia::ListedAccount>& accounts, |
48 const GoogleServiceAuthError& error) override; | 48 const GoogleServiceAuthError& error) override; |
49 | 49 |
50 // DeviceActivityFetcher::Observer: | 50 // DeviceActivityFetcher::Observer: |
51 void OnFetchDeviceActivitySuccess( | 51 void OnFetchDeviceActivitySuccess( |
52 const std::vector<DeviceActivityFetcher::DeviceActivity>& devices) | 52 const std::vector<DeviceActivityFetcher::DeviceActivity>& devices) |
53 override; | 53 override; |
54 void OnFetchDeviceActivityFailure() override; | 54 void OnFetchDeviceActivityFailure() override; |
55 | 55 |
56 // Profile should be shown the promo. | 56 // Profile should be shown the promo. |
57 bool IsPromoActive(); | 57 bool IsPromoActive(); |
(...skipping 72 matching lines...) Loading... |
130 // configurigng the promo. | 130 // configurigng the promo. |
131 base::Time start_last_browsing_session_; | 131 base::Time start_last_browsing_session_; |
132 | 132 |
133 // Used to delay the check of Device Activity. | 133 // Used to delay the check of Device Activity. |
134 base::OneShotTimer<CrossDevicePromo> device_activity_timer_; | 134 base::OneShotTimer<CrossDevicePromo> device_activity_timer_; |
135 | 135 |
136 DISALLOW_COPY_AND_ASSIGN(CrossDevicePromo); | 136 DISALLOW_COPY_AND_ASSIGN(CrossDevicePromo); |
137 }; | 137 }; |
138 | 138 |
139 #endif // CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_ | 139 #endif // CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_ |
OLD | NEW |