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

Side by Side Diff: chrome/browser/ui/webui/signin/login_ui_service.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual void OnSyncConfirmationUIClosed(bool configure_sync_first) {} 48 virtual void OnSyncConfirmationUIClosed(bool configure_sync_first) {}
49 49
50 // Called when a confirmation UI for untrusted signin is shown. 50 // Called when a confirmation UI for untrusted signin is shown.
51 virtual void OnUntrustedLoginUIShown() {} 51 virtual void OnUntrustedLoginUIShown() {}
52 52
53 protected: 53 protected:
54 virtual ~Observer() {} 54 virtual ~Observer() {}
55 }; 55 };
56 56
57 explicit LoginUIService(Profile* profile); 57 explicit LoginUIService(Profile* profile);
58 virtual ~LoginUIService(); 58 ~LoginUIService() override;
59 59
60 // Gets the currently active login UI, or null if no login UI is active. 60 // Gets the currently active login UI, or null if no login UI is active.
61 LoginUI* current_login_ui() const { 61 LoginUI* current_login_ui() const {
62 return ui_; 62 return ui_;
63 } 63 }
64 64
65 // |observer| The observer to add or remove; cannot be NULL. 65 // |observer| The observer to add or remove; cannot be NULL.
66 void AddObserver(Observer* observer); 66 void AddObserver(Observer* observer);
67 void RemoveObserver(Observer* observer); 67 void RemoveObserver(Observer* observer);
68 68
(...skipping 29 matching lines...) Expand all
98 98
99 // List of observers. 99 // List of observers.
100 ObserverList<Observer> observer_list_; 100 ObserverList<Observer> observer_list_;
101 101
102 base::string16 last_login_result_; 102 base::string16 last_login_result_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(LoginUIService); 104 DISALLOW_COPY_AND_ASSIGN(LoginUIService);
105 }; 105 };
106 106
107 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_ 107 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698