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

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

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iwyu fixes Created 4 years, 8 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
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 <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "chrome/browser/chromeos/base/locale_util.h" 16 #include "chrome/browser/chromeos/base/locale_util.h"
17 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h" 17 #include "chrome/browser/chromeos/login/signin/oauth2_login_manager.h"
18 #include "chrome/browser/chromeos/login/signin/token_handle_util.h" 18 #include "chrome/browser/chromeos/login/signin/token_handle_util.h"
19 #include "chromeos/dbus/session_manager_client.h" 19 #include "chromeos/dbus/session_manager_client.h"
20 #include "chromeos/login/auth/authenticator.h" 20 #include "chromeos/login/auth/authenticator.h"
21 #include "chromeos/login/auth/user_context.h" 21 #include "chromeos/login/auth/user_context.h"
22 #include "components/user_manager/user.h" 22 #include "components/user_manager/user.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 void SendUserPodsMetrics(); 409 void SendUserPodsMetrics();
410 410
411 UserSessionManagerDelegate* delegate_; 411 UserSessionManagerDelegate* delegate_;
412 412
413 // Authentication/user context. 413 // Authentication/user context.
414 UserContext user_context_; 414 UserContext user_context_;
415 scoped_refptr<Authenticator> authenticator_; 415 scoped_refptr<Authenticator> authenticator_;
416 StartSessionType start_session_type_; 416 StartSessionType start_session_type_;
417 417
418 // Injected user context for stub authenticator. 418 // Injected user context for stub authenticator.
419 scoped_ptr<UserContext> injected_user_context_; 419 std::unique_ptr<UserContext> injected_user_context_;
420 420
421 // True if the authentication context's cookie jar contains authentication 421 // True if the authentication context's cookie jar contains authentication
422 // cookies from the authentication extension login flow. 422 // cookies from the authentication extension login flow.
423 bool has_auth_cookies_; 423 bool has_auth_cookies_;
424 424
425 // Active user session restoration related members. 425 // Active user session restoration related members.
426 426
427 // True if user sessions has been restored after crash. 427 // True if user sessions has been restored after crash.
428 // On a normal boot then login into user sessions this will be false. 428 // On a normal boot then login into user sessions this will be false.
429 bool user_sessions_restored_; 429 bool user_sessions_restored_;
(...skipping 25 matching lines...) Expand all
455 // Kiosk mode related members. 455 // Kiosk mode related members.
456 // Chrome oauth client id and secret - override values for kiosk mode. 456 // Chrome oauth client id and secret - override values for kiosk mode.
457 std::string chrome_client_id_; 457 std::string chrome_client_id_;
458 std::string chrome_client_secret_; 458 std::string chrome_client_secret_;
459 459
460 // Per-user-session Input Methods states. 460 // Per-user-session Input Methods states.
461 std::map<Profile*, scoped_refptr<input_method::InputMethodManager::State>, 461 std::map<Profile*, scoped_refptr<input_method::InputMethodManager::State>,
462 ProfileCompare> default_ime_states_; 462 ProfileCompare> default_ime_states_;
463 463
464 // Manages Easy unlock cryptohome keys. 464 // Manages Easy unlock cryptohome keys.
465 scoped_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_; 465 std::unique_ptr<EasyUnlockKeyManager> easy_unlock_key_manager_;
466 bool running_easy_unlock_key_ops_; 466 bool running_easy_unlock_key_ops_;
467 base::Closure easy_unlock_key_ops_finished_callback_; 467 base::Closure easy_unlock_key_ops_finished_callback_;
468 468
469 // Whether should fetch token handles, tests may override this value. 469 // Whether should fetch token handles, tests may override this value.
470 bool should_obtain_handles_; 470 bool should_obtain_handles_;
471 471
472 scoped_ptr<TokenHandleUtil> token_handle_util_; 472 std::unique_ptr<TokenHandleUtil> token_handle_util_;
473 scoped_ptr<TokenHandleFetcher> token_handle_fetcher_; 473 std::unique_ptr<TokenHandleFetcher> token_handle_fetcher_;
474 474
475 // Whether should launch browser, tests may override this value. 475 // Whether should launch browser, tests may override this value.
476 bool should_launch_browser_; 476 bool should_launch_browser_;
477 477
478 // Child account status is necessary for InitializeStartUrls call. 478 // Child account status is necessary for InitializeStartUrls call.
479 bool waiting_for_child_account_status_; 479 bool waiting_for_child_account_status_;
480 480
481 base::WeakPtrFactory<UserSessionManager> weak_factory_; 481 base::WeakPtrFactory<UserSessionManager> weak_factory_;
482 482
483 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); 483 DISALLOW_COPY_AND_ASSIGN(UserSessionManager);
484 }; 484 };
485 485
486 } // namespace chromeos 486 } // namespace chromeos
487 487
488 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 488 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698