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 18 matching lines...) Expand all Loading... |
29 virtual void RegisterMessages() OVERRIDE; | 29 virtual void RegisterMessages() OVERRIDE; |
30 | 30 |
31 // SyncSetupFlowHandler implementation. | 31 // SyncSetupFlowHandler implementation. |
32 virtual void ShowOAuthLogin() OVERRIDE; | 32 virtual void ShowOAuthLogin() OVERRIDE; |
33 virtual void ShowGaiaLogin(const base::DictionaryValue& args) OVERRIDE; | 33 virtual void ShowGaiaLogin(const base::DictionaryValue& args) OVERRIDE; |
34 virtual void ShowGaiaSuccessAndClose() OVERRIDE; | 34 virtual void ShowGaiaSuccessAndClose() OVERRIDE; |
35 virtual void ShowGaiaSuccessAndSettingUp() OVERRIDE; | 35 virtual void ShowGaiaSuccessAndSettingUp() OVERRIDE; |
36 virtual void ShowConfigure(const base::DictionaryValue& args) OVERRIDE; | 36 virtual void ShowConfigure(const base::DictionaryValue& args) OVERRIDE; |
37 virtual void ShowPassphraseEntry(const base::DictionaryValue& args) OVERRIDE; | 37 virtual void ShowPassphraseEntry(const base::DictionaryValue& args) OVERRIDE; |
38 virtual void ShowSettingUp() OVERRIDE; | 38 virtual void ShowSettingUp() OVERRIDE; |
39 virtual void ShowSetupDone(const std::wstring& 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); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // Weak reference. | 103 // Weak reference. |
104 SyncSetupFlow* flow_; | 104 SyncSetupFlow* flow_; |
105 scoped_ptr<GaiaOAuthFetcher> oauth_login_; | 105 scoped_ptr<GaiaOAuthFetcher> oauth_login_; |
106 // Weak reference to the profile manager. | 106 // Weak reference to the profile manager. |
107 ProfileManager* const profile_manager_; | 107 ProfileManager* const profile_manager_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); | 109 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); |
110 }; | 110 }; |
111 | 111 |
112 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ | 112 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
OLD | NEW |