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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory>
9 #include <set> 10 #include <set>
10 #include <string> 11 #include <string>
11 12
12 #include "base/callback.h" 13 #include "base/callback.h"
13 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
14 #include "base/containers/hash_tables.h" 15 #include "base/containers/hash_tables.h"
15 #include "base/macros.h" 16 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "chrome/browser/chromeos/login/screens/network_error_model.h" 19 #include "chrome/browser/chromeos/login/screens/network_error_model.h"
20 #include "chrome/browser/chromeos/login/signin_specifics.h" 20 #include "chrome/browser/chromeos/login/signin_specifics.h"
21 #include "chrome/browser/chromeos/login/ui/login_display.h" 21 #include "chrome/browser/chromeos/login/ui/login_display.h"
22 #include "chrome/browser/chromeos/settings/cros_settings.h" 22 #include "chrome/browser/chromeos/settings/cros_settings.h"
23 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 23 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
24 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" 24 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h"
25 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 25 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
26 #include "chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h" 26 #include "chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h"
27 #include "chromeos/network/portal_detector/network_portal_detector.h" 27 #include "chromeos/network/portal_detector/network_portal_detector.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 void HandleLogRemoveUserWarningShown(); 365 void HandleLogRemoveUserWarningShown();
366 void HandleFirstIncorrectPasswordAttempt(const AccountId& account_id); 366 void HandleFirstIncorrectPasswordAttempt(const AccountId& account_id);
367 void HandleMaxIncorrectPasswordAttempts(const AccountId& account_id); 367 void HandleMaxIncorrectPasswordAttempts(const AccountId& account_id);
368 void HandleSendFeedbackAndResyncUserData(); 368 void HandleSendFeedbackAndResyncUserData();
369 369
370 // Sends the list of |keyboard_layouts| available for the |locale| that is 370 // Sends the list of |keyboard_layouts| available for the |locale| that is
371 // currently selected for the public session identified by |user_id|. 371 // currently selected for the public session identified by |user_id|.
372 void SendPublicSessionKeyboardLayouts( 372 void SendPublicSessionKeyboardLayouts(
373 const AccountId& account_id, 373 const AccountId& account_id,
374 const std::string& locale, 374 const std::string& locale,
375 scoped_ptr<base::ListValue> keyboard_layouts); 375 std::unique_ptr<base::ListValue> keyboard_layouts);
376 376
377 // Returns true iff 377 // Returns true iff
378 // (i) log in is restricted to some user list, 378 // (i) log in is restricted to some user list,
379 // (ii) all users in the restricted list are present. 379 // (ii) all users in the restricted list are present.
380 bool AllWhitelistedUsersPresent(); 380 bool AllWhitelistedUsersPresent();
381 381
382 // Cancels password changed flow - switches back to login screen. 382 // Cancels password changed flow - switches back to login screen.
383 // Called as a callback after cookies are cleared. 383 // Called as a callback after cookies are cleared.
384 void CancelPasswordChangedFlowInternal(); 384 void CancelPasswordChangedFlowInternal();
385 385
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 NetworkError::ErrorReason gaia_reload_reason_ = 461 NetworkError::ErrorReason gaia_reload_reason_ =
462 NetworkError::ERROR_REASON_NONE; 462 NetworkError::ERROR_REASON_NONE;
463 463
464 bool caps_lock_enabled_ = false; 464 bool caps_lock_enabled_ = false;
465 465
466 // Non-owning ptr. 466 // Non-owning ptr.
467 // TODO(antrim@): remove this dependency. 467 // TODO(antrim@): remove this dependency.
468 GaiaScreenHandler* gaia_screen_handler_ = nullptr; 468 GaiaScreenHandler* gaia_screen_handler_ = nullptr;
469 469
470 // Maximized mode controller delegate. 470 // Maximized mode controller delegate.
471 scoped_ptr<TouchViewControllerDelegate> max_mode_delegate_; 471 std::unique_ptr<TouchViewControllerDelegate> max_mode_delegate_;
472 472
473 // Input Method Engine state used at signin screen. 473 // Input Method Engine state used at signin screen.
474 scoped_refptr<input_method::InputMethodManager::State> ime_state_; 474 scoped_refptr<input_method::InputMethodManager::State> ime_state_;
475 475
476 // This callback captures "focusPod finished" event for tests. 476 // This callback captures "focusPod finished" event for tests.
477 base::Closure test_focus_pod_callback_; 477 base::Closure test_focus_pod_callback_;
478 478
479 // True if SigninScreenHandler has already been added to OobeUI observers. 479 // True if SigninScreenHandler has already been added to OobeUI observers.
480 bool oobe_ui_observer_added_ = false; 480 bool oobe_ui_observer_added_ = false;
481 481
482 bool zero_offline_timeout_for_test_ = false; 482 bool zero_offline_timeout_for_test_ = false;
483 483
484 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; 484 std::unique_ptr<ErrorScreensHistogramHelper> histogram_helper_;
485 485
486 scoped_ptr<LoginFeedback> login_feedback_; 486 std::unique_ptr<LoginFeedback> login_feedback_;
487 487
488 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 488 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
489 489
490 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 490 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
491 }; 491 };
492 492
493 } // namespace chromeos 493 } // namespace chromeos
494 494
495 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 495 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.cc ('k') | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698