| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SIGNIN_INLINE_LOGIN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ |
| 7 | 7 |
| 8 #include "content/public/browser/web_ui_message_handler.h" | 8 #include "content/public/browser/web_ui_message_handler.h" |
| 9 | 9 |
| 10 // The base class handler for the inline login WebUI. | 10 // The base class handler for the inline login WebUI. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 // JS callback to initialize the gaia auth extension. It calls | 29 // JS callback to initialize the gaia auth extension. It calls |
| 30 // |SetExtraInitParams| to set extra init params. | 30 // |SetExtraInitParams| to set extra init params. |
| 31 void HandleInitializeMessage(const base::ListValue* args); | 31 void HandleInitializeMessage(const base::ListValue* args); |
| 32 // JS callback to complete login. It calls |CompleteLogin| to do the real | 32 // JS callback to complete login. It calls |CompleteLogin| to do the real |
| 33 // work. | 33 // work. |
| 34 void HandleCompleteLoginMessage(const base::ListValue* args); | 34 void HandleCompleteLoginMessage(const base::ListValue* args); |
| 35 | 35 |
| 36 // JS callback to switch the UI from a constrainted dialog to a full tab. |
| 37 void HandleSwitchToFullTabMessage(const base::ListValue* args); |
| 38 |
| 36 virtual void SetExtraInitParams(base::DictionaryValue& params) {} | 39 virtual void SetExtraInitParams(base::DictionaryValue& params) {} |
| 37 virtual void CompleteLogin(const base::ListValue* args) = 0; | 40 virtual void CompleteLogin(const base::ListValue* args) = 0; |
| 38 | 41 |
| 39 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandler); | 42 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandler); |
| 40 }; | 43 }; |
| 41 | 44 |
| 42 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ | 45 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ |
| OLD | NEW |