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 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 #include <map> | 9 #include <map> |
11 #include <vector> | 10 #include <vector> |
12 | 11 |
13 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
14 #include "base/timer.h" | 13 #include "base/timer.h" |
15 #include "chrome/browser/extensions/extension_function.h" | 14 #include "chrome/browser/extensions/extension_function.h" |
16 #include "chrome/common/extensions/api/alarms.h" | 15 #include "chrome/common/extensions/api/alarms.h" |
17 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 AlarmMap alarms_; | 148 AlarmMap alarms_; |
150 | 149 |
151 // 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. |
152 base::Time last_poll_time_; | 151 base::Time last_poll_time_; |
153 base::Time next_poll_time_; | 152 base::Time next_poll_time_; |
154 }; | 153 }; |
155 | 154 |
156 } // namespace extensions | 155 } // namespace extensions |
157 | 156 |
158 #endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__ | 157 #endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__ |
OLD | NEW |