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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/prefs/pref_member.h" | 11 #include "base/prefs/pref_member.h" |
12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
13 #include "chrome/browser/prefs/pref_service_syncable_observer.h" | |
14 #include "components/keyed_service/core/keyed_service.h" | 13 #include "components/keyed_service/core/keyed_service.h" |
| 14 #include "components/syncable_prefs/pref_service_syncable_observer.h" |
15 #include "ui/message_center/notifier_settings.h" | 15 #include "ui/message_center/notifier_settings.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 typedef Callback<void(void)> Closure; | 18 typedef Callback<void(void)> Closure; |
19 } | 19 } |
20 | 20 |
21 namespace message_center { | 21 namespace message_center { |
22 class MessageCenter; | 22 class MessageCenter; |
23 } | 23 } |
24 | 24 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 expiration_timer_; | 155 expiration_timer_; |
156 | 156 |
157 // Delegate for Chrome global calls like base::Time::GetTime() for | 157 // Delegate for Chrome global calls like base::Time::GetTime() for |
158 // testability. | 158 // testability. |
159 scoped_ptr<Delegate> delegate_; | 159 scoped_ptr<Delegate> delegate_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(ExtensionWelcomeNotification); | 161 DISALLOW_COPY_AND_ASSIGN(ExtensionWelcomeNotification); |
162 }; | 162 }; |
163 | 163 |
164 #endif // CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_ | 164 #endif // CHROME_BROWSER_NOTIFICATIONS_EXTENSION_WELCOME_NOTIFICATION_H_ |
OLD | NEW |