| 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_PROFILES_AVATAR_MENU_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
| 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ | 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // Returns the icon for the managed user which will be displayed in the | 123 // Returns the icon for the managed user which will be displayed in the |
| 124 // avatar menu. | 124 // avatar menu. |
| 125 const gfx::Image& GetManagedUserIcon() const; | 125 const gfx::Image& GetManagedUserIcon() const; |
| 126 | 126 |
| 127 // This menu is also used for the always-present Mac system menubar. If the | 127 // This menu is also used for the always-present Mac system menubar. If the |
| 128 // last active browser changes, the menu will need to reference that browser. | 128 // last active browser changes, the menu will need to reference that browser. |
| 129 void ActiveBrowserChanged(Browser* browser); | 129 void ActiveBrowserChanged(Browser* browser); |
| 130 | 130 |
| 131 // Start the sign-out process for this profile. | 131 // Start the sign-out process for this profile. |
| 132 content::WebContents* BeginSignOut(); | 132 void BeginSignOut(); |
| 133 | |
| 134 // Use a different URL for logout (for testing only). | |
| 135 void SetLogoutURL(const std::string& logout_url); | |
| 136 | 133 |
| 137 // Returns true if the add profile link should be shown. | 134 // Returns true if the add profile link should be shown. |
| 138 bool ShouldShowAddNewProfileLink() const; | 135 bool ShouldShowAddNewProfileLink() const; |
| 139 | 136 |
| 140 // Returns true if the edit profile link should be shown. | 137 // Returns true if the edit profile link should be shown. |
| 141 bool ShouldShowEditProfileLink() const; | 138 bool ShouldShowEditProfileLink() const; |
| 142 | 139 |
| 143 // content::NotificationObserver: | 140 // content::NotificationObserver: |
| 144 virtual void Observe(int type, | 141 virtual void Observe(int type, |
| 145 const content::NotificationSource& source, | 142 const content::NotificationSource& source, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 161 // Browser in which this avatar menu resides. Weak. | 158 // Browser in which this avatar menu resides. Weak. |
| 162 Browser* browser_; | 159 Browser* browser_; |
| 163 | 160 |
| 164 // Listens for notifications from the ProfileInfoCache. | 161 // Listens for notifications from the ProfileInfoCache. |
| 165 content::NotificationRegistrar registrar_; | 162 content::NotificationRegistrar registrar_; |
| 166 | 163 |
| 167 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); | 164 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); |
| 168 }; | 165 }; |
| 169 | 166 |
| 170 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ | 167 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
| OLD | NEW |