| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ |
| 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ | 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 virtual void Observe(int type, | 156 virtual void Observe(int type, |
| 157 const content::NotificationSource& source, | 157 const content::NotificationSource& source, |
| 158 const content::NotificationDetails& details) OVERRIDE; | 158 const content::NotificationDetails& details) OVERRIDE; |
| 159 | 159 |
| 160 // BackgroundApplicationListModel::Observer implementation. | 160 // BackgroundApplicationListModel::Observer implementation. |
| 161 virtual void OnApplicationDataChanged(const Extension* extension, | 161 virtual void OnApplicationDataChanged(const Extension* extension, |
| 162 Profile* profile) OVERRIDE; | 162 Profile* profile) OVERRIDE; |
| 163 virtual void OnApplicationListChanged(Profile* profile) OVERRIDE; | 163 virtual void OnApplicationListChanged(Profile* profile) OVERRIDE; |
| 164 | 164 |
| 165 // Overrides from ProfileInfoCacheObserver | 165 // Overrides from ProfileInfoCacheObserver |
| 166 virtual void OnProfileAdded(const string16& profile_name, | 166 virtual void OnProfileAdded(const FilePath& profile_path) OVERRIDE; |
| 167 const string16& profile_base_dir, | 167 virtual void OnProfileWillBeRemoved(const FilePath& profile_path) OVERRIDE; |
| 168 const FilePath& profile_path, | 168 virtual void OnProfileWasRemoved(const FilePath& profile_path, |
| 169 const gfx::Image* avatar_image) OVERRIDE; | 169 const string16& profile_name) OVERRIDE; |
| 170 virtual void OnProfileWillBeRemoved(const string16& profile_name) OVERRIDE; | 170 virtual void OnProfileNameChanged(const FilePath& profile_path, |
| 171 virtual void OnProfileWasRemoved(const string16& profile_name) OVERRIDE; | 171 const string16& old_profile_name) OVERRIDE; |
| 172 virtual void OnProfileNameChanged(const string16& old_profile_name, | 172 virtual void OnProfileAvatarChanged(const FilePath& profile_path) OVERRIDE; |
| 173 const string16& new_profile_name) OVERRIDE; | |
| 174 virtual void OnProfileAvatarChanged(const string16& profile_name, | |
| 175 const string16& profile_base_dir, | |
| 176 const FilePath& profile_path, | |
| 177 const gfx::Image* avatar_image) OVERRIDE; | |
| 178 | 173 |
| 179 // Overrides from SimpleMenuModel::Delegate implementation. | 174 // Overrides from SimpleMenuModel::Delegate implementation. |
| 180 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 175 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
| 181 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 176 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 182 virtual bool GetAcceleratorForCommandId(int command_id, | 177 virtual bool GetAcceleratorForCommandId(int command_id, |
| 183 ui::Accelerator* accelerator) | 178 ui::Accelerator* accelerator) |
| 184 OVERRIDE; | 179 OVERRIDE; |
| 185 virtual void ExecuteCommand(int command_id) OVERRIDE; | 180 virtual void ExecuteCommand(int command_id) OVERRIDE; |
| 186 | 181 |
| 187 // Invoked when an extension is installed so we can ensure that | 182 // Invoked when an extension is installed so we can ensure that |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 // app). | 293 // app). |
| 299 bool keep_alive_for_test_; | 294 bool keep_alive_for_test_; |
| 300 | 295 |
| 301 // Provides a command id for each profile as they are created. | 296 // Provides a command id for each profile as they are created. |
| 302 int current_command_id_; | 297 int current_command_id_; |
| 303 | 298 |
| 304 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager); | 299 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager); |
| 305 }; | 300 }; |
| 306 | 301 |
| 307 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ | 302 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ |
| OLD | NEW |