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

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

Issue 1261433013: Implement online reauth UI for Locked Profiles on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix views code Created 5 years, 4 months 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
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_PROFILE_WINDOW_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/profiles/profile_manager.h" 9 #include "chrome/browser/profiles/profile_manager.h"
10 #include "chrome/browser/profiles/profile_metrics.h" 10 #include "chrome/browser/profiles/profile_metrics.h"
(...skipping 24 matching lines...) Expand all
35 USER_MANAGER_SELECT_PROFILE_APP_LAUNCHER, 35 USER_MANAGER_SELECT_PROFILE_APP_LAUNCHER,
36 }; 36 };
37 37
38 extern const char kUserManagerDisplayTutorial[]; 38 extern const char kUserManagerDisplayTutorial[];
39 extern const char kUserManagerSelectProfileTaskManager[]; 39 extern const char kUserManagerSelectProfileTaskManager[];
40 extern const char kUserManagerSelectProfileAboutChrome[]; 40 extern const char kUserManagerSelectProfileAboutChrome[];
41 extern const char kUserManagerSelectProfileChromeSettings[]; 41 extern const char kUserManagerSelectProfileChromeSettings[];
42 extern const char kUserManagerSelectProfileChromeMemory[]; 42 extern const char kUserManagerSelectProfileChromeMemory[];
43 extern const char kUserManagerSelectProfileAppLauncher[]; 43 extern const char kUserManagerSelectProfileAppLauncher[];
44 44
45 class ReauthDialogObserver : public content::WebContentsObserver {
Roger Tawa OOO till Jul 10th 2015/08/05 13:36:05 Please add class comment.
anthonyvd 2015/08/05 18:20:44 Done.
46 public:
47 ReauthDialogObserver(content::WebContents* web_contents,
48 const std::string& email_address);
49 ~ReauthDialogObserver() override {}
50
51 private:
52 // content::WebContentsObserver:
53 void DidStopLoading() override;
54
55 virtual void CloseReauthDialog() = 0;
56
57 content::WebContents* web_contents_;
58 const std::string email_address_;
59
60 DISALLOW_COPY_AND_ASSIGN(ReauthDialogObserver);
61 };
62
45 // Returns the path of the profile connected to the given email. If no profile 63 // Returns the path of the profile connected to the given email. If no profile
46 // is found an empty file path is returned. 64 // is found an empty file path is returned.
47 base::FilePath GetPathOfProfileWithEmail(ProfileManager* profile_manager, 65 base::FilePath GetPathOfProfileWithEmail(ProfileManager* profile_manager,
48 const std::string& email); 66 const std::string& email);
49 67
50 // Activates a window for |profile| on the desktop specified by 68 // Activates a window for |profile| on the desktop specified by
51 // |desktop_type|. If no such window yet exists, or if |always_create| is 69 // |desktop_type|. If no such window yet exists, or if |always_create| is
52 // true, this first creates a new window, then activates 70 // true, this first creates a new window, then activates
53 // that. If activating an exiting window and multiple windows exists then the 71 // that. If activating an exiting window and multiple windows exists then the
54 // window that was most recently active is activated. This is used for 72 // window that was most recently active is activated. This is used for
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 bool ShouldShowWelcomeUpgradeTutorial( 151 bool ShouldShowWelcomeUpgradeTutorial(
134 Profile* profile, TutorialMode tutorial_mode); 152 Profile* profile, TutorialMode tutorial_mode);
135 153
136 // Returns true if the tutorial informing the user about right-click user 154 // Returns true if the tutorial informing the user about right-click user
137 // switching should be shown, false otherwise. 155 // switching should be shown, false otherwise.
138 bool ShouldShowRightClickTutorial(Profile* profile); 156 bool ShouldShowRightClickTutorial(Profile* profile);
139 157
140 } // namespace profiles 158 } // namespace profiles
141 159
142 #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_ 160 #endif // CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_window.cc » ('j') | chrome/browser/profiles/profile_window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698