OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_NTP_NTP_LOGIN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NTP_LOGIN_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_NTP_NTP_LOGIN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NTP_LOGIN_HANDLER_H_ |
7 | 7 |
8 #include "base/prefs/pref_member.h" | 8 #include "base/prefs/pref_member.h" |
9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 void HandleLoginMessageSeen(const base::ListValue* args); | 62 void HandleLoginMessageSeen(const base::ListValue* args); |
63 | 63 |
64 // Called from JS when the user clicks on the advanced link the sync promo NTP | 64 // Called from JS when the user clicks on the advanced link the sync promo NTP |
65 // bubble. Use use this to navigate to the sync settings page. |args| is the | 65 // bubble. Use use this to navigate to the sync settings page. |args| is the |
66 // list of arguments passed from JS and should be an empty list. | 66 // list of arguments passed from JS and should be an empty list. |
67 void HandleShowAdvancedLoginUI(const base::ListValue* args); | 67 void HandleShowAdvancedLoginUI(const base::ListValue* args); |
68 | 68 |
69 // Internal helper method | 69 // Internal helper method |
70 void UpdateLogin(); | 70 void UpdateLogin(); |
71 | 71 |
72 StringPrefMember username_pref_; | |
73 BooleanPrefMember signin_allowed_pref_; | 72 BooleanPrefMember signin_allowed_pref_; |
74 content::NotificationRegistrar registrar_; | 73 content::NotificationRegistrar registrar_; |
75 }; | 74 }; |
76 | 75 |
77 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_LOGIN_HANDLER_H_ | 76 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_LOGIN_HANDLER_H_ |
OLD | NEW |