Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: chrome/browser/ui/webui/sync_setup_handler.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "chrome/browser/sync/sync_startup_tracker.h" 11 #include "chrome/browser/sync/sync_startup_tracker.h"
12 #include "chrome/browser/ui/webui/options/options_ui.h" 12 #include "chrome/browser/ui/webui/options/options_ui.h"
13 #include "chrome/browser/ui/webui/signin/login_ui_service.h" 13 #include "chrome/browser/ui/webui/signin/login_ui_service.h"
14 14
15 class LoginUIService; 15 class LoginUIService;
16 class ProfileManager; 16 class ProfileManager;
17 class ProfileSyncService; 17 class ProfileSyncService;
18 class SigninManagerBase; 18 class SigninManagerBase;
19 19
20 namespace content { 20 namespace content {
21 class WebContents; 21 class WebContents;
22 } 22 }
23 23
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 ~SyncSetupHandler() override;
31 31
32 // OptionsPageUIHandler implementation. 32 // OptionsPageUIHandler implementation.
33 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings) 33 void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
34 override; 34 void RegisterMessages() override;
35 virtual void RegisterMessages() override;
36 35
37 // SyncStartupTracker::Observer implementation; 36 // SyncStartupTracker::Observer implementation;
38 virtual void SyncStartupCompleted() override; 37 void SyncStartupCompleted() override;
39 virtual void SyncStartupFailed() override; 38 void SyncStartupFailed() override;
40 39
41 // LoginUIService::LoginUI implementation. 40 // LoginUIService::LoginUI implementation.
42 virtual void FocusUI() override; 41 void FocusUI() override;
43 virtual void CloseUI() override; 42 void CloseUI() override;
44 43
45 static void GetStaticLocalizedValues( 44 static void GetStaticLocalizedValues(
46 base::DictionaryValue* localized_strings, 45 base::DictionaryValue* localized_strings,
47 content::WebUI* web_ui); 46 content::WebUI* web_ui);
48 47
49 // Initializes the sync setup flow and shows the setup UI. 48 // Initializes the sync setup flow and shows the setup UI.
50 void OpenSyncSetup(); 49 void OpenSyncSetup();
51 50
52 // Shows advanced configuration dialog without going through sign in dialog. 51 // Shows advanced configuration dialog without going through sign in dialog.
53 // Kicks the sync backend if necessary with showing spinner dialog until it 52 // Kicks the sync backend if necessary with showing spinner dialog until it
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 ProfileManager* const profile_manager_; 159 ProfileManager* const profile_manager_;
161 160
162 // The OneShotTimer object used to timeout of starting the sync backend 161 // The OneShotTimer object used to timeout of starting the sync backend
163 // service. 162 // service.
164 scoped_ptr<base::OneShotTimer<SyncSetupHandler> > backend_start_timer_; 163 scoped_ptr<base::OneShotTimer<SyncSetupHandler> > backend_start_timer_;
165 164
166 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler); 165 DISALLOW_COPY_AND_ASSIGN(SyncSetupHandler);
167 }; 166 };
168 167
169 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_ 168 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_SETUP_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698