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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 bool is_throttled_; | 222 bool is_throttled_; |
223 | 223 |
224 // Metric to help us track how long a browsing session is. This is set in | 224 // Metric to help us track how long a browsing session is. This is set in |
225 // MaybeBrowsingSessionStarted(), see that method for details. | 225 // MaybeBrowsingSessionStarted(), see that method for details. |
226 // Useful for configuring the field trial to manage our server quota. | 226 // Useful for configuring the field trial to manage our server quota. |
227 base::Time start_last_browsing_session_; | 227 base::Time start_last_browsing_session_; |
228 | 228 |
229 // Used to delay the check of device activity. See | 229 // Used to delay the check of device activity. See |
230 // OnFetchDeviceActivitySuccess() or MaybeBrowsingSessionStarted(), as well as | 230 // OnFetchDeviceActivitySuccess() or MaybeBrowsingSessionStarted(), as well as |
231 // |delay_until_next_device_activity_fetch_|, for details. | 231 // |delay_until_next_device_activity_fetch_|, for details. |
232 base::OneShotTimer<CrossDevicePromo> device_activity_timer_; | 232 base::OneShotTimer device_activity_timer_; |
233 | 233 |
234 DISALLOW_COPY_AND_ASSIGN(CrossDevicePromo); | 234 DISALLOW_COPY_AND_ASSIGN(CrossDevicePromo); |
235 }; | 235 }; |
236 | 236 |
237 #endif // CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_ | 237 #endif // CHROME_BROWSER_SIGNIN_CROSS_DEVICE_PROMO_H_ |
OLD | NEW |