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/timer.h" | 10 #include "base/timer/timer.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 class SyncSetupHandler : public options::OptionsPageUIHandler, | 24 class SyncSetupHandler : public options::OptionsPageUIHandler, |
25 public SyncStartupTracker::Observer, | 25 public SyncStartupTracker::Observer, |
26 public LoginUIService::LoginUI { | 26 public LoginUIService::LoginUI { |
27 public: | 27 public: |
28 // Constructs a new SyncSetupHandler. |profile_manager| may be NULL. | 28 // Constructs a new SyncSetupHandler. |profile_manager| may be NULL. |
29 explicit SyncSetupHandler(ProfileManager* profile_manager); | 29 explicit SyncSetupHandler(ProfileManager* profile_manager); |
30 virtual ~SyncSetupHandler(); | 30 virtual ~SyncSetupHandler(); |
31 | 31 |
32 // OptionsPageUIHandler implementation. | 32 // OptionsPageUIHandler implementation. |
33 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings) | 33 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings) |
34 OVERRIDE; | 34 override; |
35 virtual void RegisterMessages() OVERRIDE; | 35 virtual void RegisterMessages() override; |
36 | 36 |
37 // SyncStartupTracker::Observer implementation; | 37 // SyncStartupTracker::Observer implementation; |
38 virtual void SyncStartupCompleted() OVERRIDE; | 38 virtual void SyncStartupCompleted() override; |
39 virtual void SyncStartupFailed() OVERRIDE; | 39 virtual void SyncStartupFailed() override; |
40 | 40 |
41 // LoginUIService::LoginUI implementation. | 41 // LoginUIService::LoginUI implementation. |
42 virtual void FocusUI() OVERRIDE; | 42 virtual void FocusUI() override; |
43 virtual void CloseUI() OVERRIDE; | 43 virtual void CloseUI() override; |
44 | 44 |
45 static void GetStaticLocalizedValues( | 45 static void GetStaticLocalizedValues( |
46 base::DictionaryValue* localized_strings, | 46 base::DictionaryValue* localized_strings, |
47 content::WebUI* web_ui); | 47 content::WebUI* web_ui); |
48 | 48 |
49 // Initializes the sync setup flow and shows the setup UI. | 49 // Initializes the sync setup flow and shows the setup UI. |
50 void OpenSyncSetup(); | 50 void OpenSyncSetup(); |
51 | 51 |
52 // Shows advanced configuration dialog without going through sign in dialog. | 52 // Shows advanced configuration dialog without going through sign in dialog. |
53 // Kicks the sync backend if necessary with showing spinner dialog until it | 53 // Kicks the sync backend if necessary with showing spinner dialog until it |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 ProfileManager* const profile_manager_; | 160 ProfileManager* const profile_manager_; |
161 | 161 |
162 // The OneShotTimer object used to timeout of starting the sync backend | 162 // The OneShotTimer object used to timeout of starting the sync backend |
163 // service. | 163 // service. |
164 scoped_ptr<base::OneShotTimer<SyncSetupHandler> > backend_start_timer_; | 164 scoped_ptr<base::OneShotTimer<SyncSetupHandler> > backend_start_timer_; |
165 | 165 |
166 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); | 166 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); |
167 }; | 167 }; |
168 | 168 |
169 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ | 169 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ |
OLD | NEW |