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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "chrome/browser/sync/sync_startup_tracker.h" | 14 #include "chrome/browser/sync/sync_startup_tracker.h" |
15 #include "chrome/browser/ui/webui/options/options_ui.h" | 15 #include "chrome/browser/ui/webui/options/options_ui.h" |
16 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 16 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
17 | 17 |
18 class LoginUIService; | 18 class LoginUIService; |
19 class SigninManagerBase; | |
20 | 19 |
21 namespace browser_sync { | 20 namespace browser_sync { |
22 class ProfileSyncService; | 21 class ProfileSyncService; |
23 } // namespace browser_sync | 22 } // namespace browser_sync |
24 | 23 |
25 namespace content { | |
26 class WebContents; | |
27 } // namespace content | |
28 | |
29 namespace signin_metrics { | 24 namespace signin_metrics { |
30 enum class AccessPoint; | 25 enum class AccessPoint; |
31 } // namespace signin_metrics | 26 } // namespace signin_metrics |
32 | 27 |
33 namespace syncer { | 28 namespace syncer { |
34 class SyncSetupInProgressHandle; | 29 class SyncSetupInProgressHandle; |
35 } // namespace syncer | 30 } // namespace syncer |
36 | 31 |
37 class SyncSetupHandler : public options::OptionsPageUIHandler, | 32 class SyncSetupHandler : public options::OptionsPageUIHandler, |
38 public SyncStartupTracker::Observer, | 33 public SyncStartupTracker::Observer, |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 bool configuring_sync_; | 166 bool configuring_sync_; |
172 | 167 |
173 // The OneShotTimer object used to timeout of starting the sync backend | 168 // The OneShotTimer object used to timeout of starting the sync backend |
174 // service. | 169 // service. |
175 std::unique_ptr<base::OneShotTimer> backend_start_timer_; | 170 std::unique_ptr<base::OneShotTimer> backend_start_timer_; |
176 | 171 |
177 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); | 172 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); |
178 }; | 173 }; |
179 | 174 |
180 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_ | 175 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SYNC_SETUP_HANDLER_H_ |
OLD | NEW |