| 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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 return weak_factory_.GetWeakPtr(); | 28 return weak_factory_.GetWeakPtr(); |
| 29 } | 29 } |
| 30 | 30 |
| 31 Browser* GetDesktopBrowser(); | 31 Browser* GetDesktopBrowser(); |
| 32 void SyncStarterCallback(OneClickSigninSyncStarter::SyncSetupResult result); | 32 void SyncStarterCallback(OneClickSigninSyncStarter::SyncSetupResult result); |
| 33 void CloseTab(); | 33 void CloseTab(); |
| 34 void HandleLoginError(const std::string& error_msg); | 34 void HandleLoginError(const std::string& error_msg); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 // InlineLoginHandler overrides: | 37 // InlineLoginHandler overrides: |
| 38 virtual void RegisterMessages() OVERRIDE; | |
| 39 virtual void SetExtraInitParams(base::DictionaryValue& params) OVERRIDE; | 38 virtual void SetExtraInitParams(base::DictionaryValue& params) OVERRIDE; |
| 40 virtual void CompleteLogin(const base::ListValue* args) OVERRIDE; | 39 virtual void CompleteLogin(const base::ListValue* args) OVERRIDE; |
| 41 | 40 |
| 42 // JS callback to switch the UI from a constrainted dialog to a full tab. | |
| 43 void HandleSwitchToFullTabMessage(const base::ListValue* args); | |
| 44 | |
| 45 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_; | 41 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_; |
| 46 std::string email_; | 42 std::string email_; |
| 47 std::string password_; | 43 std::string password_; |
| 48 std::string session_index_; | 44 std::string session_index_; |
| 49 bool choose_what_to_sync_; | 45 bool choose_what_to_sync_; |
| 50 | 46 |
| 51 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl); | 47 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl); |
| 52 }; | 48 }; |
| 53 | 49 |
| 54 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ | 50 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ |
| OLD | NEW |