| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 // BackgroundApplicationListModel::Observer implementation. | 165 // BackgroundApplicationListModel::Observer implementation. |
| 166 virtual void OnApplicationDataChanged(const extensions::Extension* extension, | 166 virtual void OnApplicationDataChanged(const extensions::Extension* extension, |
| 167 Profile* profile) OVERRIDE; | 167 Profile* profile) OVERRIDE; |
| 168 virtual void OnApplicationListChanged(Profile* profile) OVERRIDE; | 168 virtual void OnApplicationListChanged(Profile* profile) OVERRIDE; |
| 169 | 169 |
| 170 // Overrides from ProfileInfoCacheObserver | 170 // Overrides from ProfileInfoCacheObserver |
| 171 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; | 171 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; |
| 172 virtual void OnProfileWillBeRemoved( | 172 virtual void OnProfileWillBeRemoved( |
| 173 const base::FilePath& profile_path) OVERRIDE; | 173 const base::FilePath& profile_path) OVERRIDE; |
| 174 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, | |
| 175 const string16& profile_name) OVERRIDE; | |
| 176 virtual void OnProfileNameChanged(const base::FilePath& profile_path, | 174 virtual void OnProfileNameChanged(const base::FilePath& profile_path, |
| 177 const string16& old_profile_name) OVERRIDE; | 175 const string16& old_profile_name) OVERRIDE; |
| 178 virtual void OnProfileAvatarChanged( | |
| 179 const base::FilePath& profile_path) OVERRIDE; | |
| 180 | 176 |
| 181 // Overrides from SimpleMenuModel::Delegate implementation. | 177 // Overrides from SimpleMenuModel::Delegate implementation. |
| 182 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 178 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
| 183 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 179 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 184 virtual bool GetAcceleratorForCommandId(int command_id, | 180 virtual bool GetAcceleratorForCommandId(int command_id, |
| 185 ui::Accelerator* accelerator) | 181 ui::Accelerator* accelerator) |
| 186 OVERRIDE; | 182 OVERRIDE; |
| 187 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; | 183 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; |
| 188 | 184 |
| 189 // Invoked when an extension is installed so we can ensure that | 185 // Invoked when an extension is installed so we can ensure that |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 // app). | 302 // app). |
| 307 bool keep_alive_for_test_; | 303 bool keep_alive_for_test_; |
| 308 | 304 |
| 309 // Provides a command id for each profile as they are created. | 305 // Provides a command id for each profile as they are created. |
| 310 int current_command_id_; | 306 int current_command_id_; |
| 311 | 307 |
| 312 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager); | 308 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager); |
| 313 }; | 309 }; |
| 314 | 310 |
| 315 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ | 311 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ |
| OLD | NEW |