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

Side by Side Diff: chrome/browser/chromeos/login/login_utils.h

Issue 10383114: Rename BrowserInit to StartupBrowserCreator, and move into startup subdir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 29 matching lines...) Expand all
40 40
41 // Set LoginUtils singleton object for test purpose only! 41 // Set LoginUtils singleton object for test purpose only!
42 static void Set(LoginUtils* ptr); 42 static void Set(LoginUtils* ptr);
43 43
44 // Checks if the given username is whitelisted and allowed to sign-in to 44 // Checks if the given username is whitelisted and allowed to sign-in to
45 // this device. 45 // this device.
46 static bool IsWhitelisted(const std::string& username); 46 static bool IsWhitelisted(const std::string& username);
47 47
48 virtual ~LoginUtils() {} 48 virtual ~LoginUtils() {}
49 49
50 // Thin wrapper around BrowserInit::LaunchBrowser(). Meant to be used in a 50 // Thin wrapper around StartupBrowserCreator::LaunchBrowser(). Meant to be
51 // Task posted to the UI thread. Once the browser is launched the login 51 // used in a Task posted to the UI thread. Once the browser is launched the
52 // host is deleted. 52 // login host is deleted.
53 virtual void DoBrowserLaunch(Profile* profile, 53 virtual void DoBrowserLaunch(Profile* profile,
54 LoginDisplayHost* login_host) = 0; 54 LoginDisplayHost* login_host) = 0;
55 55
56 // Loads and prepares profile for the session. Fires |delegate| in the end. 56 // Loads and prepares profile for the session. Fires |delegate| in the end.
57 // If |pending_requests| is true, there's a pending online auth request. 57 // If |pending_requests| is true, there's a pending online auth request.
58 // If |display_email| is not empty, user's displayed email will be set to 58 // If |display_email| is not empty, user's displayed email will be set to
59 // this value, shown in UI. 59 // this value, shown in UI.
60 // Also see DelegateDeleted method. 60 // Also see DelegateDeleted method.
61 virtual void PrepareProfile( 61 virtual void PrepareProfile(
62 const std::string& username, 62 const std::string& username,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // given command line. 130 // given command line.
131 virtual std::string GetOffTheRecordCommandLine( 131 virtual std::string GetOffTheRecordCommandLine(
132 const GURL& start_url, 132 const GURL& start_url,
133 const CommandLine& base_command_line, 133 const CommandLine& base_command_line,
134 CommandLine* command_line) = 0; 134 CommandLine* command_line) = 0;
135 }; 135 };
136 136
137 } // namespace chromeos 137 } // namespace chromeos
138 138
139 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 139 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698