OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/prefs/pref_member.h" | |
13 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
14 #include "components/keyed_service/core/keyed_service.h" | 13 #include "components/keyed_service/core/keyed_service.h" |
| 14 #include "components/prefs/pref_member.h" |
15 #include "components/syncable_prefs/pref_service_syncable_observer.h" | 15 #include "components/syncable_prefs/pref_service_syncable_observer.h" |
16 #include "ui/message_center/notifier_settings.h" | 16 #include "ui/message_center/notifier_settings.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 typedef Callback<void(void)> Closure; | 19 typedef Callback<void(void)> Closure; |
20 } | 20 } |
21 | 21 |
22 namespace message_center { | 22 namespace message_center { |
23 class MessageCenter; | 23 class MessageCenter; |
24 } | 24 } |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 scoped_ptr<base::OneShotTimer> expiration_timer_; | 156 scoped_ptr<base::OneShotTimer> expiration_timer_; |
157 | 157 |
158 // Delegate for Chrome global calls like base::Time::GetTime() for | 158 // Delegate for Chrome global calls like base::Time::GetTime() for |
159 // testability. | 159 // testability. |
160 scoped_ptr<Delegate> delegate_; | 160 scoped_ptr<Delegate> delegate_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(ExtensionWelcomeNotification); | 162 DISALLOW_COPY_AND_ASSIGN(ExtensionWelcomeNotification); |
163 }; | 163 }; |
164 | 164 |
165 #endif // CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_ | 165 #endif // CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_ |
OLD | NEW |