| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ | 5 #ifndef CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ |
| 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ | 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 ~OneClickSigninSyncStarter() override; | 123 ~OneClickSigninSyncStarter() override; |
| 124 | 124 |
| 125 // Initializes the internals of the OneClickSigninSyncStarter object. Can also | 125 // Initializes the internals of the OneClickSigninSyncStarter object. Can also |
| 126 // be used to re-initialize the object to refer to a newly created profile. | 126 // be used to re-initialize the object to refer to a newly created profile. |
| 127 void Initialize(Profile* profile, Browser* browser); | 127 void Initialize(Profile* profile, Browser* browser); |
| 128 | 128 |
| 129 // SigninTracker::Observer override. | 129 // SigninTracker::Observer override. |
| 130 void SigninFailed(const GoogleServiceAuthError& error) override; | 130 void SigninFailed(const GoogleServiceAuthError& error) override; |
| 131 void SigninSuccess() override; | 131 void SigninSuccess() override; |
| 132 void MergeSessionComplete(const GoogleServiceAuthError& error) override; | 132 void AccountAddedToCookie(const GoogleServiceAuthError& error) override; |
| 133 | 133 |
| 134 // LoginUIService::Observer override. | 134 // LoginUIService::Observer override. |
| 135 void OnSyncConfirmationUIClosed(bool configure_sync_first) override; | 135 void OnSyncConfirmationUIClosed(bool configure_sync_first) override; |
| 136 | 136 |
| 137 #if defined(ENABLE_CONFIGURATION_POLICY) | 137 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 138 // User input handler for the signin confirmation dialog. | 138 // User input handler for the signin confirmation dialog. |
| 139 class SigninDialogDelegate | 139 class SigninDialogDelegate |
| 140 : public ui::ProfileSigninConfirmationDelegate { | 140 : public ui::ProfileSigninConfirmationDelegate { |
| 141 public: | 141 public: |
| 142 SigninDialogDelegate( | 142 SigninDialogDelegate( |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 std::string client_id_; | 237 std::string client_id_; |
| 238 #endif | 238 #endif |
| 239 | 239 |
| 240 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_; | 240 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_; |
| 241 | 241 |
| 242 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter); | 242 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter); |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 | 245 |
| 246 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ | 246 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ |
| OLD | NEW |