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/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 cert_database namespace. Created 6 years, 2 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // UserSessionManager finished restoring user sessions. 108 // UserSessionManager finished restoring user sessions.
109 bool UserSessionsRestored() const; 109 bool UserSessionsRestored() const;
110 110
111 // Returns true iff browser has been restarted after crash and 111 // Returns true iff browser has been restarted after crash and
112 // user sessions restoration is in progress. 112 // user sessions restoration is in progress.
113 bool UserSessionsRestoreInProgress() const; 113 bool UserSessionsRestoreInProgress() const;
114 114
115 // Initialize RLZ. 115 // Initialize RLZ.
116 void InitRlz(Profile* profile); 116 void InitRlz(Profile* profile);
117 117
118 // Get the NSS cert database for the user represented with |profile|
119 // and start certificate loader with it.
120 void InitializeCerts(Profile* profile);
121
122 // TODO(nkostylev): Drop these methods once LoginUtilsImpl::AttemptRestart() 118 // TODO(nkostylev): Drop these methods once LoginUtilsImpl::AttemptRestart()
123 // is migrated. 119 // is migrated.
124 OAuth2LoginManager::SessionRestoreStrategy GetSigninSessionRestoreStrategy(); 120 OAuth2LoginManager::SessionRestoreStrategy GetSigninSessionRestoreStrategy();
125 bool exit_after_session_restore() { return exit_after_session_restore_; } 121 bool exit_after_session_restore() { return exit_after_session_restore_; }
126 void set_exit_after_session_restore(bool value) { 122 void set_exit_after_session_restore(bool value) {
127 exit_after_session_restore_ = value; 123 exit_after_session_restore_ = value;
128 } 124 }
129 125
130 // Invoked when the user is logging in for the first time, or is logging in to 126 // Invoked when the user is logging in for the first time, or is logging in to
131 // an ephemeral session type, such as guest or a public session. 127 // an ephemeral session type, such as guest or a public session.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; 308 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_;
313 bool running_easy_unlock_key_ops_; 309 bool running_easy_unlock_key_ops_;
314 base::Closure easy_unlock_key_ops_finished_callback_; 310 base::Closure easy_unlock_key_ops_finished_callback_;
315 311
316 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); 312 DISALLOW_COPY_AND_ASSIGN(UserSessionManager);
317 }; 313 };
318 314
319 } // namespace chromeos 315 } // namespace chromeos
320 316
321 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 317 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698