| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h" | 9 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h" |
| 10 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" | 10 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 virtual void ShowSetupDone(const string16& user) OVERRIDE; | 39 virtual void ShowSetupDone(const string16& user) OVERRIDE; |
| 40 virtual void SetFlow(SyncSetupFlow* flow) OVERRIDE; | 40 virtual void SetFlow(SyncSetupFlow* flow) OVERRIDE; |
| 41 virtual void Focus() OVERRIDE; | 41 virtual void Focus() OVERRIDE; |
| 42 | 42 |
| 43 // GaiaOAuthConsumer implementation. | 43 // GaiaOAuthConsumer implementation. |
| 44 virtual void OnGetOAuthTokenSuccess(const std::string& oauth_token) OVERRIDE; | 44 virtual void OnGetOAuthTokenSuccess(const std::string& oauth_token) OVERRIDE; |
| 45 virtual void OnGetOAuthTokenFailure( | 45 virtual void OnGetOAuthTokenFailure( |
| 46 const GoogleServiceAuthError& error) OVERRIDE; | 46 const GoogleServiceAuthError& error) OVERRIDE; |
| 47 | 47 |
| 48 static void GetStaticLocalizedValues( | 48 static void GetStaticLocalizedValues( |
| 49 base::DictionaryValue* localized_strings); | 49 base::DictionaryValue* localized_strings, |
| 50 WebUI* web_ui); |
| 50 | 51 |
| 51 // Initializes the sync setup flow and shows the setup UI. | 52 // Initializes the sync setup flow and shows the setup UI. |
| 52 void OpenSyncSetup(); | 53 void OpenSyncSetup(); |
| 53 | 54 |
| 54 // Terminates the sync setup flow. | 55 // Terminates the sync setup flow. |
| 55 void CloseSyncSetup(); | 56 void CloseSyncSetup(); |
| 56 | 57 |
| 57 protected: | 58 protected: |
| 58 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin); | 59 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, InitialStepLogin); |
| 59 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs); | 60 FRIEND_TEST_ALL_PREFIXES(SyncSetupWizardTest, ChooseDataTypesSetsPrefs); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Weak reference. | 104 // Weak reference. |
| 104 SyncSetupFlow* flow_; | 105 SyncSetupFlow* flow_; |
| 105 scoped_ptr<GaiaOAuthFetcher> oauth_login_; | 106 scoped_ptr<GaiaOAuthFetcher> oauth_login_; |
| 106 // Weak reference to the profile manager. | 107 // Weak reference to the profile manager. |
| 107 ProfileManager* const profile_manager_; | 108 ProfileManager* const profile_manager_; |
| 108 | 109 |
| 109 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); | 110 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ | 113 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
| OLD | NEW |