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_WEBUI_SYNC_SETUP_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/signin/signin_tracker.h" | 10 #include "chrome/browser/signin/signin_tracker.h" |
11 #include "chrome/browser/sync/sync_setup_flow_handler.h" | 11 #include "chrome/browser/sync/sync_setup_flow_handler.h" |
12 #include "chrome/browser/ui/webui/options/options_ui.h" | 12 #include "chrome/browser/ui/webui/options2/options_ui2.h" |
13 | 13 |
14 class LoginUIService; | 14 class LoginUIService; |
15 class ProfileManager; | 15 class ProfileManager; |
16 class ProfileSyncService; | 16 class ProfileSyncService; |
17 class SigninManager; | 17 class SigninManager; |
18 class SyncSetupFlow; | 18 class SyncSetupFlow; |
19 | 19 |
20 class SyncSetupHandler : public OptionsPageUIHandler, | 20 class SyncSetupHandler : public options2::OptionsPageUIHandler, |
21 public SyncSetupFlowHandler, | 21 public SyncSetupFlowHandler, |
22 public SigninTracker::Observer { | 22 public SigninTracker::Observer { |
23 public: | 23 public: |
24 // Constructs a new SyncSetupHandler. |profile_manager| may be NULL. | 24 // Constructs a new SyncSetupHandler. |profile_manager| may be NULL. |
25 explicit SyncSetupHandler(ProfileManager* profile_manager); | 25 explicit SyncSetupHandler(ProfileManager* profile_manager); |
26 virtual ~SyncSetupHandler(); | 26 virtual ~SyncSetupHandler(); |
27 | 27 |
28 // OptionsPageUIHandler implementation. | 28 // OptionsPageUIHandler implementation. |
29 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings) | 29 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings) |
30 OVERRIDE; | 30 OVERRIDE; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // Cache of the last name the client attempted to authenticate. | 166 // Cache of the last name the client attempted to authenticate. |
167 std::string last_attempted_user_email_; | 167 std::string last_attempted_user_email_; |
168 | 168 |
169 // The error from the last signin attempt. | 169 // The error from the last signin attempt. |
170 GoogleServiceAuthError last_signin_error_; | 170 GoogleServiceAuthError last_signin_error_; |
171 | 171 |
172 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); | 172 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); |
173 }; | 173 }; |
174 | 174 |
175 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ | 175 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
OLD | NEW |