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_OPTIONS_SYNC_SETUP_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 // LoginUIService::LoginUI implementation. | 44 // LoginUIService::LoginUI implementation. |
45 void FocusUI() override; | 45 void FocusUI() override; |
46 void CloseUI() override; | 46 void CloseUI() override; |
47 | 47 |
48 static void GetStaticLocalizedValues( | 48 static void GetStaticLocalizedValues( |
49 base::DictionaryValue* localized_strings, | 49 base::DictionaryValue* localized_strings, |
50 content::WebUI* web_ui); | 50 content::WebUI* web_ui); |
51 | 51 |
52 // Initializes the sync setup flow and shows the setup UI. | 52 // Initializes the sync setup flow and shows the setup UI. |
53 void OpenSyncSetup(const base::ListValue* args); | 53 void OpenSyncSetup(bool creating_supervised_user); |
54 | 54 |
55 // Shows advanced configuration dialog without going through sign in dialog. | 55 // Shows advanced configuration dialog without going through sign in dialog. |
56 // Kicks the sync backend if necessary with showing spinner dialog until it | 56 // Kicks the sync backend if necessary with showing spinner dialog until it |
57 // gets ready. | 57 // gets ready. |
58 void OpenConfigureSync(); | 58 void OpenConfigureSync(); |
59 | 59 |
60 // Terminates the sync setup flow. | 60 // Terminates the sync setup flow. |
61 void CloseSyncSetup(); | 61 void CloseSyncSetup(); |
62 | 62 |
63 protected: | 63 protected: |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 bool configuring_sync_; | 158 bool configuring_sync_; |
159 | 159 |
160 // The OneShotTimer object used to timeout of starting the sync backend | 160 // The OneShotTimer object used to timeout of starting the sync backend |
161 // service. | 161 // service. |
162 scoped_ptr<base::OneShotTimer> backend_start_timer_; | 162 scoped_ptr<base::OneShotTimer> backend_start_timer_; |
163 | 163 |
164 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); | 164 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); |
165 }; | 165 }; |
166 | 166 |
167 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_ | 167 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_ |
OLD | NEW |