Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Side by Side Diff: chrome/browser/extensions/api/alarms/alarm_manager.h

Issue 23071003: Delta from the first fix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/alarms/alarm_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 base::OneShotTimer<AlarmManager> timer_; 208 base::OneShotTimer<AlarmManager> timer_;
209 209
210 // A map of our pending alarms, per extension. 210 // A map of our pending alarms, per extension.
211 // Invariant: None of the AlarmLists are empty. 211 // Invariant: None of the AlarmLists are empty.
212 AlarmMap alarms_; 212 AlarmMap alarms_;
213 213
214 // A map of actions waiting for alarm data to be synced from storage, per 214 // A map of actions waiting for alarm data to be synced from storage, per
215 // extension. 215 // extension.
216 ReadyMap ready_actions_; 216 ReadyMap ready_actions_;
217 217
218 // The previous and next time that alarms were and will be run. 218 // The previous time that alarms were run.
219 base::Time last_poll_time_; 219 base::Time last_poll_time_;
220 base::Time next_poll_time_; 220
221 // Next poll's time. Used only by unit tests.
222 base::Time test_next_poll_time_;
221 223
222 DISALLOW_COPY_AND_ASSIGN(AlarmManager); 224 DISALLOW_COPY_AND_ASSIGN(AlarmManager);
223 }; 225 };
224 226
225 } // namespace extensions 227 } // namespace extensions
226 228
227 #endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__ 229 #endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/alarms/alarm_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698