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

Side by Side Diff: chrome/browser/chromeos/login/session/user_session_manager.h

Issue 419013003: Replace c/b/nss_context by a KeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added Linux implementation. Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SESSION_USER_SESSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // and notifies observers. 100 // and notifies observers.
101 void RestoreActiveSessions(); 101 void RestoreActiveSessions();
102 102
103 // Returns true iff browser has been restarted after crash and UserManager 103 // Returns true iff browser has been restarted after crash and UserManager
104 // finished restoring user sessions. 104 // finished restoring user sessions.
105 bool UserSessionsRestored() const; 105 bool UserSessionsRestored() const;
106 106
107 // Initialize RLZ. 107 // Initialize RLZ.
108 void InitRlz(Profile* profile); 108 void InitRlz(Profile* profile);
109 109
110 // Get the NSS cert database for the user represented with |profile|
111 // and start certificate loader with it.
112 void InitializeCerts(Profile* profile);
113
114 // TODO(nkostylev): Drop these methods once LoginUtilsImpl::AttemptRestart() 110 // TODO(nkostylev): Drop these methods once LoginUtilsImpl::AttemptRestart()
115 // is migrated. 111 // is migrated.
116 OAuth2LoginManager::SessionRestoreStrategy GetSigninSessionRestoreStrategy(); 112 OAuth2LoginManager::SessionRestoreStrategy GetSigninSessionRestoreStrategy();
117 bool exit_after_session_restore() { return exit_after_session_restore_; } 113 bool exit_after_session_restore() { return exit_after_session_restore_; }
118 void set_exit_after_session_restore(bool value) { 114 void set_exit_after_session_restore(bool value) {
119 exit_after_session_restore_ = value; 115 exit_after_session_restore_ = value;
120 } 116 }
121 117
122 // Invoked when the user is logging in for the first time, or is logging in to 118 // Invoked when the user is logging in for the first time, or is logging in to
123 // an ephemeral session type, such as guest or a public session. 119 // an ephemeral session type, such as guest or a public session.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // Per-user-session Input Methods states. 276 // Per-user-session Input Methods states.
281 std::map<Profile*, scoped_refptr<input_method::InputMethodManager::State> > 277 std::map<Profile*, scoped_refptr<input_method::InputMethodManager::State> >
282 default_ime_states_; 278 default_ime_states_;
283 279
284 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); 280 DISALLOW_COPY_AND_ASSIGN(UserSessionManager);
285 }; 281 };
286 282
287 } // namespace chromeos 283 } // namespace chromeos
288 284
289 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 285 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698