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

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

Issue 10915153: Cleanup: Simplify some extension API code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 3 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
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 <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
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__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698