Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: chrome/browser/profiles/avatar_menu_actions.h

Issue 64313005: Fix crash when locking a profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix flaky test Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_PROFILES_AVATAR_MENU_ACTIONS_H_ 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_H_
6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_H_ 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/profiles/avatar_menu.h" 10 #include "chrome/browser/profiles/avatar_menu.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // Allows the user to edit the profile at the given index in the cache. 25 // Allows the user to edit the profile at the given index in the cache.
26 virtual void EditProfile(Profile* profile, size_t index) = 0; 26 virtual void EditProfile(Profile* profile, size_t index) = 0;
27 27
28 // Returns true if the add profile link should be shown. 28 // Returns true if the add profile link should be shown.
29 virtual bool ShouldShowAddNewProfileLink() const = 0; 29 virtual bool ShouldShowAddNewProfileLink() const = 0;
30 30
31 // Returns true if the edit profile link should be shown. 31 // Returns true if the edit profile link should be shown.
32 virtual bool ShouldShowEditProfileLink() const = 0; 32 virtual bool ShouldShowEditProfileLink() const = 0;
33 33
34 // Starts the sign-out process for this profile.
35 virtual content::WebContents* BeginSignOut() = 0;
36
37 // Sets a different URL to use for logout (for testing only).
38 virtual void SetLogoutURL(const std::string& logout_url) = 0;
39
40 // Updates the browser. 34 // Updates the browser.
41 // TODO: Delegate browser actions to remove dependency on Browser class. 35 // TODO: Delegate browser actions to remove dependency on Browser class.
42 virtual void ActiveBrowserChanged(Browser* browser) = 0; 36 virtual void ActiveBrowserChanged(Browser* browser) = 0;
43 }; 37 };
44 38
45 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_H_ 39 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/avatar_menu.cc ('k') | chrome/browser/profiles/avatar_menu_actions_desktop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698