| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void Observe(int type, | 91 void Observe(int type, |
| 92 const content::NotificationSource& source, | 92 const content::NotificationSource& source, |
| 93 const content::NotificationDetails& details) override; | 93 const content::NotificationDetails& details) override; |
| 94 | 94 |
| 95 // ProfileInfoCacheObserver: | 95 // ProfileInfoCacheObserver: |
| 96 void OnProfileAdded(const base::FilePath& profile_path) override; | 96 void OnProfileAdded(const base::FilePath& profile_path) override; |
| 97 void OnProfileWasRemoved(const base::FilePath& profile_path, | 97 void OnProfileWasRemoved(const base::FilePath& profile_path, |
| 98 const base::string16& profile_name) override; | 98 const base::string16& profile_name) override; |
| 99 void OnProfileNameChanged(const base::FilePath& profile_path, | 99 void OnProfileNameChanged(const base::FilePath& profile_path, |
| 100 const base::string16& old_profile_name) override; | 100 const base::string16& old_profile_name) override; |
| 101 void OnProfileUserNameChanged(const base::FilePath& profile_path) override; | 101 void OnProfileAuthInfoChanged(const base::FilePath& profile_path) override; |
| 102 | 102 |
| 103 void OnFaviconLoaded(const GURL& url, | 103 void OnFaviconLoaded(const GURL& url, |
| 104 const favicon_base::FaviconImageResult& favicon_result); | 104 const favicon_base::FaviconImageResult& favicon_result); |
| 105 | 105 |
| 106 #if defined(OS_CHROMEOS) | 106 #if defined(OS_CHROMEOS) |
| 107 // Sets up the notifier group for the guest session. This needs to be | 107 // Sets up the notifier group for the guest session. This needs to be |
| 108 // separated from RebuildNotifierGroup() and called asynchronously to avoid | 108 // separated from RebuildNotifierGroup() and called asynchronously to avoid |
| 109 // the infinite loop of creating profile. See more the comment of | 109 // the infinite loop of creating profile. See more the comment of |
| 110 // RebuildNotifierGroups(). | 110 // RebuildNotifierGroups(). |
| 111 void CreateNotifierGroupForGuestLogin(); | 111 void CreateNotifierGroupForGuestLogin(); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 133 content::NotificationRegistrar registrar_; | 133 content::NotificationRegistrar registrar_; |
| 134 | 134 |
| 135 ProfileInfoCache* profile_info_cache_; | 135 ProfileInfoCache* profile_info_cache_; |
| 136 | 136 |
| 137 base::WeakPtrFactory<MessageCenterSettingsController> weak_factory_; | 137 base::WeakPtrFactory<MessageCenterSettingsController> weak_factory_; |
| 138 | 138 |
| 139 DISALLOW_COPY_AND_ASSIGN(MessageCenterSettingsController); | 139 DISALLOW_COPY_AND_ASSIGN(MessageCenterSettingsController); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ | 142 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_SETTINGS_CONTROLLER_H_ |
| OLD | NEW |