| 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_UI_BROWSER_COMMAND_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/prefs/public/pref_change_registrar.h" | 8 #include "base/prefs/public/pref_change_registrar.h" |
| 9 #include "chrome/browser/api/sync/profile_sync_service_observer.h" | 9 #include "chrome/browser/api/sync/profile_sync_service_observer.h" |
| 10 #include "chrome/browser/command_updater.h" | 10 #include "chrome/browser/command_updater.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 virtual void ExecuteCommandWithDisposition( | 95 virtual void ExecuteCommandWithDisposition( |
| 96 int id, | 96 int id, |
| 97 WindowOpenDisposition disposition) OVERRIDE; | 97 WindowOpenDisposition disposition) OVERRIDE; |
| 98 | 98 |
| 99 // Overridden from content::NotificationObserver: | 99 // Overridden from content::NotificationObserver: |
| 100 virtual void Observe(int type, | 100 virtual void Observe(int type, |
| 101 const content::NotificationSource& source, | 101 const content::NotificationSource& source, |
| 102 const content::NotificationDetails& details) OVERRIDE; | 102 const content::NotificationDetails& details) OVERRIDE; |
| 103 | 103 |
| 104 // Overridden from ProfileInfoCacheObserver: | 104 // Overridden from ProfileInfoCacheObserver: |
| 105 virtual void OnProfileAdded(const FilePath& profile_path) OVERRIDE; | 105 virtual void OnProfileAdded(const base::FilePath& profile_path) OVERRIDE; |
| 106 virtual void OnProfileWillBeRemoved(const FilePath& profile_path) OVERRIDE; | 106 virtual void OnProfileWillBeRemoved( |
| 107 virtual void OnProfileWasRemoved(const FilePath& profile_path, | 107 const base::FilePath& profile_path) OVERRIDE; |
| 108 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, |
| 108 const string16& profile_name) OVERRIDE; | 109 const string16& profile_name) OVERRIDE; |
| 109 virtual void OnProfileNameChanged(const FilePath& profile_path, | 110 virtual void OnProfileNameChanged(const base::FilePath& profile_path, |
| 110 const string16& old_profile_name) OVERRIDE; | 111 const string16& old_profile_name) OVERRIDE; |
| 111 virtual void OnProfileAvatarChanged(const FilePath& profile_path) OVERRIDE; | 112 virtual void OnProfileAvatarChanged(const base::FilePath& profile_path) OVERRI
DE; |
| 112 | 113 |
| 113 // Overridden from ProfileSyncServiceObserver: | 114 // Overridden from ProfileSyncServiceObserver: |
| 114 virtual void OnStateChanged() OVERRIDE; | 115 virtual void OnStateChanged() OVERRIDE; |
| 115 | 116 |
| 116 // Overridden from TabStripModelObserver: | 117 // Overridden from TabStripModelObserver: |
| 117 virtual void TabInsertedAt(content::WebContents* contents, | 118 virtual void TabInsertedAt(content::WebContents* contents, |
| 118 int index, | 119 int index, |
| 119 bool foreground) OVERRIDE; | 120 bool foreground) OVERRIDE; |
| 120 virtual void TabDetachedAt(content::WebContents* contents, | 121 virtual void TabDetachedAt(content::WebContents* contents, |
| 121 int index) OVERRIDE; | 122 int index) OVERRIDE; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 content::NotificationRegistrar registrar_; | 211 content::NotificationRegistrar registrar_; |
| 211 PrefChangeRegistrar profile_pref_registrar_; | 212 PrefChangeRegistrar profile_pref_registrar_; |
| 212 PrefChangeRegistrar local_pref_registrar_; | 213 PrefChangeRegistrar local_pref_registrar_; |
| 213 | 214 |
| 214 DISALLOW_COPY_AND_ASSIGN(BrowserCommandController); | 215 DISALLOW_COPY_AND_ASSIGN(BrowserCommandController); |
| 215 }; | 216 }; |
| 216 | 217 |
| 217 } // namespace chrome | 218 } // namespace chrome |
| 218 | 219 |
| 219 #endif // CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_ | 220 #endif // CHROME_BROWSER_UI_BROWSER_COMMAND_CONTROLLER_H_ |
| OLD | NEW |