| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" | 10 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // JS callback to switch the UI from a constrainted dialog to a full tab. | 36 // JS callback to switch the UI from a constrainted dialog to a full tab. |
| 37 void HandleSwitchToFullTabMessage(const base::ListValue* args); | 37 void HandleSwitchToFullTabMessage(const base::ListValue* args); |
| 38 void HandleLoginError(const std::string& error_msg); | 38 void HandleLoginError(const std::string& error_msg); |
| 39 void SyncStarterCallback(OneClickSigninSyncStarter::SyncSetupResult result); | 39 void SyncStarterCallback(OneClickSigninSyncStarter::SyncSetupResult result); |
| 40 void CloseTab(); | 40 void CloseTab(); |
| 41 | 41 |
| 42 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_; | 42 base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_; |
| 43 scoped_ptr<GaiaAuthFetcher> auth_fetcher_; | 43 scoped_ptr<GaiaAuthFetcher> auth_fetcher_; |
| 44 std::string email_; | 44 std::string email_; |
| 45 std::string password_; | 45 std::string password_; |
| 46 std::string session_index_; | |
| 47 bool choose_what_to_sync_; | 46 bool choose_what_to_sync_; |
| 47 // Partition id for the gaia webview; |
| 48 std::string partition_id_; |
| 48 | 49 |
| 49 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl); | 50 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerImpl); |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ | 53 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ |
| OLD | NEW |