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 | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <map> | 10 #include <map> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/timer.h" | 13 #include "base/timer.h" |
14 #include "chrome/browser/extensions/extension_function.h" | 14 #include "chrome/browser/extensions/extension_function.h" |
15 #include "chrome/common/extensions/api/experimental_alarms.h" | 15 #include "chrome/common/extensions/api/experimental.alarms.h" |
16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
18 | 18 |
19 class Profile; | 19 class Profile; |
20 | 20 |
21 namespace extensions { | 21 namespace extensions { |
22 | 22 |
23 // Manages the currently pending alarms for every extension in a profile. | 23 // Manages the currently pending alarms for every extension in a profile. |
24 // There is one manager per virtual Profile. | 24 // There is one manager per virtual Profile. |
25 class AlarmManager : public content::NotificationObserver { | 25 class AlarmManager : public content::NotificationObserver { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 linked_ptr<AlarmManager::Alarm> alarm; | 111 linked_ptr<AlarmManager::Alarm> alarm; |
112 base::Time scheduled_run_time; | 112 base::Time scheduled_run_time; |
113 | 113 |
114 AlarmPref(); | 114 AlarmPref(); |
115 ~AlarmPref(); | 115 ~AlarmPref(); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace extensions | 118 } // namespace extensions |
119 | 119 |
120 #endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__ | 120 #endif // CHROME_BROWSER_EXTENSIONS_API_ALARMS_ALARM_MANAGER_H__ |
OLD | NEW |