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

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

Issue 15929005: [CrOS multi-profiles] Restore user sessions after crash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 7 years, 6 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_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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // login host is deleted. 58 // login host is deleted.
59 virtual void DoBrowserLaunch(Profile* profile, 59 virtual void DoBrowserLaunch(Profile* profile,
60 LoginDisplayHost* login_host) = 0; 60 LoginDisplayHost* login_host) = 0;
61 61
62 // Loads and prepares profile for the session. Fires |delegate| in the end. 62 // Loads and prepares profile for the session. Fires |delegate| in the end.
63 // If |pending_requests| is true, there's a pending online auth request. 63 // If |pending_requests| is true, there's a pending online auth request.
64 // If |display_email| is not empty, user's displayed email will be set to 64 // If |display_email| is not empty, user's displayed email will be set to
65 // this value, shown in UI. 65 // this value, shown in UI.
66 // |user_context.username_hash| defines when user homedir is mounted. 66 // |user_context.username_hash| defines when user homedir is mounted.
67 // Also see DelegateDeleted method. 67 // Also see DelegateDeleted method.
68 // If |has_active_session| is true than this is a case of restoring user
69 // session after browser crash so no need to start new session.
68 virtual void PrepareProfile( 70 virtual void PrepareProfile(
69 const UserContext& user_context, 71 const UserContext& user_context,
70 const std::string& display_email, 72 const std::string& display_email,
71 bool using_oauth, 73 bool using_oauth,
72 bool has_cookies, 74 bool has_cookies,
75 bool has_active_session,
73 Delegate* delegate) = 0; 76 Delegate* delegate) = 0;
74 77
75 // Invalidates |delegate|, which was passed to PrepareProfile method call. 78 // Invalidates |delegate|, which was passed to PrepareProfile method call.
76 virtual void DelegateDeleted(Delegate* delegate) = 0; 79 virtual void DelegateDeleted(Delegate* delegate) = 0;
77 80
78 // Invoked after the tmpfs is successfully mounted. 81 // Invoked after the tmpfs is successfully mounted.
79 // Asks session manager to restart Chrome in Browse Without Sign In mode. 82 // Asks session manager to restart Chrome in Browse Without Sign In mode.
80 // |start_url| is url for launched browser to open. 83 // |start_url| is url for launched browser to open.
81 virtual void CompleteOffTheRecordLogin(const GURL& start_url) = 0; 84 virtual void CompleteOffTheRecordLogin(const GURL& start_url) = 0;
82 85
(...skipping 22 matching lines...) Expand all
105 // Stops background fetchers. 108 // Stops background fetchers.
106 virtual void StopBackgroundFetchers() = 0; 109 virtual void StopBackgroundFetchers() = 0;
107 110
108 // Initialize RLZ. 111 // Initialize RLZ.
109 virtual void InitRlzDelayed(Profile* user_profile) = 0; 112 virtual void InitRlzDelayed(Profile* user_profile) = 0;
110 }; 113 };
111 114
112 } // namespace chromeos 115 } // namespace chromeos
113 116
114 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ 117 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller_browsertest.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698