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