| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/public/browser/web_ui_message_handler.h" | 10 #include "content/public/browser/web_ui_message_handler.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 // |SetExtraInitParams| to set extra init params. | 43 // |SetExtraInitParams| to set extra init params. |
| 44 void ContinueHandleInitializeMessage(); | 44 void ContinueHandleInitializeMessage(); |
| 45 | 45 |
| 46 // JS callback to complete login. It calls |CompleteLogin| to do the real | 46 // JS callback to complete login. It calls |CompleteLogin| to do the real |
| 47 // work. | 47 // work. |
| 48 void HandleCompleteLoginMessage(const base::ListValue* args); | 48 void HandleCompleteLoginMessage(const base::ListValue* args); |
| 49 | 49 |
| 50 // JS callback to switch the UI from a constrainted dialog to a full tab. | 50 // JS callback to switch the UI from a constrainted dialog to a full tab. |
| 51 void HandleSwitchToFullTabMessage(const base::ListValue* args); | 51 void HandleSwitchToFullTabMessage(const base::ListValue* args); |
| 52 | 52 |
| 53 // Handles the web ui message sent when the navigation button is clicked by |
| 54 // the user, requesting either a back navigation or closing the dialog. |
| 55 void HandleNavigationButtonClicked(const base::ListValue* args); |
| 56 |
| 53 virtual void SetExtraInitParams(base::DictionaryValue& params) {} | 57 virtual void SetExtraInitParams(base::DictionaryValue& params) {} |
| 54 virtual void CompleteLogin(const base::ListValue* args) = 0; | 58 virtual void CompleteLogin(const base::ListValue* args) = 0; |
| 55 | 59 |
| 56 base::WeakPtrFactory<InlineLoginHandler> weak_ptr_factory_; | 60 base::WeakPtrFactory<InlineLoginHandler> weak_ptr_factory_; |
| 57 | 61 |
| 58 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandler); | 62 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandler); |
| 59 }; | 63 }; |
| 60 | 64 |
| 61 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ | 65 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ |
| OLD | NEW |