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 "base/timer.h" | 10 #include "base/timer.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // Returns the LoginUIService for the parent profile. | 114 // Returns the LoginUIService for the parent profile. |
115 LoginUIService* GetLoginUIService() const; | 115 LoginUIService* GetLoginUIService() const; |
116 | 116 |
117 private: | 117 private: |
118 // Callbacks from the page. | 118 // Callbacks from the page. |
119 void OnDidClosePage(const base::ListValue* args); | 119 void OnDidClosePage(const base::ListValue* args); |
120 void HandleSubmitAuth(const base::ListValue* args); | 120 void HandleSubmitAuth(const base::ListValue* args); |
121 void HandleConfigure(const base::ListValue* args); | 121 void HandleConfigure(const base::ListValue* args); |
122 void HandlePassphraseEntry(const base::ListValue* args); | 122 void HandlePassphraseEntry(const base::ListValue* args); |
123 void HandlePassphraseCancel(const base::ListValue* args); | 123 void HandlePassphraseCancel(const base::ListValue* args); |
124 void HandleAttachHandler(const base::ListValue* args); | |
125 void HandleShowErrorUI(const base::ListValue* args); | 124 void HandleShowErrorUI(const base::ListValue* args); |
126 void HandleShowSetupUI(const base::ListValue* args); | 125 void HandleShowSetupUI(const base::ListValue* args); |
127 void HandleShowSetupUIWithoutLogin(const base::ListValue* args); | 126 void HandleShowSetupUIWithoutLogin(const base::ListValue* args); |
128 void HandleDoSignOutOnAuthError(const base::ListValue* args); | 127 void HandleDoSignOutOnAuthError(const base::ListValue* args); |
129 void HandleStopSyncing(const base::ListValue* args); | 128 void HandleStopSyncing(const base::ListValue* args); |
130 void HandleCloseTimeout(const base::ListValue* args); | 129 void HandleCloseTimeout(const base::ListValue* args); |
131 | 130 |
132 // Helper routine that gets the Profile associated with this object (virtual | 131 // Helper routine that gets the Profile associated with this object (virtual |
133 // so tests can override). | 132 // so tests can override). |
134 virtual Profile* GetProfile() const; | 133 virtual Profile* GetProfile() const; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 scoped_ptr<base::OneShotTimer<SyncSetupHandler> > backend_start_timer_; | 223 scoped_ptr<base::OneShotTimer<SyncSetupHandler> > backend_start_timer_; |
225 | 224 |
226 // When using web-flow, weak pointer to the tab that holds the Gaia sign in | 225 // When using web-flow, weak pointer to the tab that holds the Gaia sign in |
227 // page. | 226 // page. |
228 content::WebContents* active_gaia_signin_tab_; | 227 content::WebContents* active_gaia_signin_tab_; |
229 | 228 |
230 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); | 229 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); |
231 }; | 230 }; |
232 | 231 |
233 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ | 232 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
OLD | NEW |