| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "content/public/browser/notification_details.h" | 23 #include "content/public/browser/notification_details.h" |
| 24 #include "content/public/browser/notification_observer.h" | 24 #include "content/public/browser/notification_observer.h" |
| 25 #include "content/public/browser/notification_registrar.h" | 25 #include "content/public/browser/notification_registrar.h" |
| 26 #include "content/public/browser/notification_source.h" | 26 #include "content/public/browser/notification_source.h" |
| 27 #include "ui/message_center/notifier_settings.h" | 27 #include "ui/message_center/notifier_settings.h" |
| 28 | 28 |
| 29 #if defined(OS_CHROMEOS) | 29 #if defined(OS_CHROMEOS) |
| 30 #include "components/user_manager/user_manager.h" | 30 #include "components/user_manager/user_manager.h" |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 class Profile; | |
| 34 class NotifierSource; | 33 class NotifierSource; |
| 35 | 34 |
| 36 namespace base { | |
| 37 class CancelableTaskTracker; | |
| 38 } | |
| 39 | |
| 40 namespace favicon_base { | |
| 41 struct FaviconImageResult; | |
| 42 } | |
| 43 | |
| 44 namespace message_center { | 35 namespace message_center { |
| 45 class ProfileNotifierGroup; | 36 class ProfileNotifierGroup; |
| 46 } | 37 } |
| 47 | 38 |
| 48 // The class to bridge between the settings UI of notifiers and the preference | 39 // The class to bridge between the settings UI of notifiers and the preference |
| 49 // storage. | 40 // storage. |
| 50 class MessageCenterSettingsController | 41 class MessageCenterSettingsController |
| 51 : public message_center::NotifierSettingsProvider, | 42 : public message_center::NotifierSettingsProvider, |
| 52 public content::NotificationObserver, | 43 public content::NotificationObserver, |
| 53 public ProfileAttributesStorage::Observer, | 44 public ProfileAttributesStorage::Observer, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 content::NotificationRegistrar registrar_; | 130 content::NotificationRegistrar registrar_; |
| 140 | 131 |
| 141 ProfileAttributesStorage& profile_attributes_storage_; | 132 ProfileAttributesStorage& profile_attributes_storage_; |
| 142 | 133 |
| 143 base::WeakPtrFactory<MessageCenterSettingsController> weak_factory_; | 134 base::WeakPtrFactory<MessageCenterSettingsController> weak_factory_; |
| 144 | 135 |
| 145 DISALLOW_COPY_AND_ASSIGN(MessageCenterSettingsController); | 136 DISALLOW_COPY_AND_ASSIGN(MessageCenterSettingsController); |
| 146 }; | 137 }; |
| 147 | 138 |
| 148 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ | 139 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ |
| OLD | NEW |