| 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_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__ | 6 #define CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // The timer for this alarm manager. | 143 // The timer for this alarm manager. |
| 144 base::OneShotTimer<AlarmManager> timer_; | 144 base::OneShotTimer<AlarmManager> timer_; |
| 145 | 145 |
| 146 // A map of our pending alarms, per extension. | 146 // A map of our pending alarms, per extension. |
| 147 // Invariant: None of the AlarmLists are empty. | 147 // Invariant: None of the AlarmLists are empty. |
| 148 AlarmMap alarms_; | 148 AlarmMap alarms_; |
| 149 | 149 |
| 150 // The previous and next time that alarms were and will be run. | 150 // The previous and next time that alarms were and will be run. |
| 151 base::Time last_poll_time_; | 151 base::Time last_poll_time_; |
| 152 base::Time next_poll_time_; | 152 base::Time next_poll_time_; |
| 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(AlarmManager); |
| 153 }; | 155 }; |
| 154 | 156 |
| 155 } // namespace extensions | 157 } // namespace extensions |
| 156 | 158 |
| 157 #endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__ | 159 #endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__ |
| OLD | NEW |