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

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

Issue 205713002: Add a basic demo mode browser test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license Created 6 years, 9 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
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_AUTHENTICATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual void LoginRetailMode() = 0; 51 virtual void LoginRetailMode() = 0;
52 52
53 // Initiates incognito ("browse without signing in") login. 53 // Initiates incognito ("browse without signing in") login.
54 virtual void LoginOffTheRecord() = 0; 54 virtual void LoginOffTheRecord() = 0;
55 55
56 // Initiates login into the public account identified by |username|. 56 // Initiates login into the public account identified by |username|.
57 virtual void LoginAsPublicAccount(const std::string& username) = 0; 57 virtual void LoginAsPublicAccount(const std::string& username) = 0;
58 58
59 // Initiates login into kiosk mode account identified by |app_user_id|. 59 // Initiates login into kiosk mode account identified by |app_user_id|.
60 // The |app_user_id| is a generated username for the account. 60 // The |app_user_id| is a generated username for the account.
61 // |force_ephemeral| specifies whether to force the session to be ephemeral. 61 // |use_guest_mount| specifies whether to force the session to use a
62 virtual void LoginAsKioskAccount( 62 // guest mount. If this is false, we use mount a public cryptohome.
63 const std::string& app_user_id, bool force_ephemeral) = 0; 63 virtual void LoginAsKioskAccount(const std::string& app_user_id,
64 bool use_guest_mount) = 0;
64 65
65 // Completes retail mode login. 66 // Completes retail mode login.
66 virtual void OnRetailModeLoginSuccess() = 0; 67 virtual void OnRetailModeLoginSuccess() = 0;
67 68
68 // Notifies caller that login was successful. Must be called on the UI thread. 69 // Notifies caller that login was successful. Must be called on the UI thread.
69 virtual void OnLoginSuccess() = 0; 70 virtual void OnLoginSuccess() = 0;
70 71
71 // Must be called on the UI thread. 72 // Must be called on the UI thread.
72 virtual void OnLoginFailure(const LoginFailure& error) = 0; 73 virtual void OnLoginFailure(const LoginFailure& error) = 0;
73 74
(...skipping 26 matching lines...) Expand all
100 101
101 private: 102 private:
102 friend class base::RefCountedThreadSafe<Authenticator>; 103 friend class base::RefCountedThreadSafe<Authenticator>;
103 104
104 DISALLOW_COPY_AND_ASSIGN(Authenticator); 105 DISALLOW_COPY_AND_ASSIGN(Authenticator);
105 }; 106 };
106 107
107 } // namespace chromeos 108 } // namespace chromeos
108 109
109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_ 110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/app_launch_controller.cc ('k') | chrome/browser/chromeos/login/demo_mode/demo_app_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698