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

Side by Side Diff: chrome/browser/ui/webui/settings/people_handler.h

Issue 1723643002: Refactor ProfileInfoCache in c/b/ui/webui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a signed/unsigned integer conversion, one removed #include Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SETTINGS_PEOPLE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_PEOPLE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_PEOPLE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_PEOPLE_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"
11 #include "base/scoped_observer.h" 11 #include "base/scoped_observer.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/timer/timer.h" 13 #include "base/timer/timer.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "chrome/browser/profiles/profile_info_cache_observer.h" 15 #include "chrome/browser/profiles/profile_attributes_storage.h"
16 #include "chrome/browser/sync/sync_startup_tracker.h" 16 #include "chrome/browser/sync/sync_startup_tracker.h"
17 #include "chrome/browser/ui/webui/signin/login_ui_service.h" 17 #include "chrome/browser/ui/webui/signin/login_ui_service.h"
18 #include "components/prefs/pref_change_registrar.h" 18 #include "components/prefs/pref_change_registrar.h"
19 #include "components/signin/core/browser/signin_manager_base.h" 19 #include "components/signin/core/browser/signin_manager_base.h"
20 #include "components/sync_driver/sync_service_observer.h" 20 #include "components/sync_driver/sync_service_observer.h"
21 #include "content/public/browser/web_ui_message_handler.h" 21 #include "content/public/browser/web_ui_message_handler.h"
22 22
23 #if defined(OS_CHROMEOS) 23 #if defined(OS_CHROMEOS)
24 #include "content/public/browser/notification_observer.h" 24 #include "content/public/browser/notification_observer.h"
25 #include "content/public/browser/notification_registrar.h" 25 #include "content/public/browser/notification_registrar.h"
(...skipping 15 matching lines...) Expand all
41 namespace settings { 41 namespace settings {
42 42
43 class PeopleHandler : public content::WebUIMessageHandler, 43 class PeopleHandler : public content::WebUIMessageHandler,
44 public SigninManagerBase::Observer, 44 public SigninManagerBase::Observer,
45 public SyncStartupTracker::Observer, 45 public SyncStartupTracker::Observer,
46 public LoginUIService::LoginUI, 46 public LoginUIService::LoginUI,
47 public sync_driver::SyncServiceObserver, 47 public sync_driver::SyncServiceObserver,
48 #if defined(OS_CHROMEOS) 48 #if defined(OS_CHROMEOS)
49 public content::NotificationObserver, 49 public content::NotificationObserver,
50 #endif 50 #endif
51 public ProfileInfoCacheObserver { 51 public ProfileAttributesStorage::Observer {
52 public: 52 public:
53 explicit PeopleHandler(Profile* profile); 53 explicit PeopleHandler(Profile* profile);
54 ~PeopleHandler() override; 54 ~PeopleHandler() override;
55 55
56 // content::WebUIMessageHandler implementation. 56 // content::WebUIMessageHandler implementation.
57 void RegisterMessages() override; 57 void RegisterMessages() override;
58 58
59 // SyncStartupTracker::Observer implementation. 59 // SyncStartupTracker::Observer implementation.
60 void SyncStartupCompleted() override; 60 void SyncStartupCompleted() override;
61 void SyncStartupFailed() override; 61 void SyncStartupFailed() override;
(...skipping 12 matching lines...) Expand all
74 // sync_driver::SyncServiceObserver implementation. 74 // sync_driver::SyncServiceObserver implementation.
75 void OnStateChanged() override; 75 void OnStateChanged() override;
76 76
77 #if defined(OS_CHROMEOS) 77 #if defined(OS_CHROMEOS)
78 // content::NotificationObserver implementation. 78 // content::NotificationObserver implementation.
79 void Observe(int type, 79 void Observe(int type,
80 const content::NotificationSource& source, 80 const content::NotificationSource& source,
81 const content::NotificationDetails& details) override; 81 const content::NotificationDetails& details) override;
82 #endif 82 #endif
83 83
84 // ProfileInfoCacheObserver implementation. 84 // ProfileAttributesStorage::Observer implementation.
85 void OnProfileNameChanged(const base::FilePath& profile_path, 85 void OnProfileNameChanged(const base::FilePath& profile_path,
86 const base::string16& old_profile_name) override; 86 const base::string16& old_profile_name) override;
87 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; 87 void OnProfileAvatarChanged(const base::FilePath& profile_path) override;
88 88
89 // Initializes the sync setup flow and shows the setup UI. 89 // Initializes the sync setup flow and shows the setup UI.
90 void OpenSyncSetup(bool creating_supervised_user); 90 void OpenSyncSetup(bool creating_supervised_user);
91 91
92 // Shows advanced configuration dialog without going through sign in dialog. 92 // Shows advanced configuration dialog without going through sign in dialog.
93 // Kicks the sync backend if necessary with showing spinner dialog until it 93 // Kicks the sync backend if necessary with showing spinner dialog until it
94 // gets ready. 94 // gets ready.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 // Manages observer lifetime. 221 // Manages observer lifetime.
222 ScopedObserver<ProfileSyncService, PeopleHandler> sync_service_observer_; 222 ScopedObserver<ProfileSyncService, PeopleHandler> sync_service_observer_;
223 223
224 DISALLOW_COPY_AND_ASSIGN(PeopleHandler); 224 DISALLOW_COPY_AND_ASSIGN(PeopleHandler);
225 }; 225 };
226 226
227 } // namespace settings 227 } // namespace settings
228 228
229 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_PEOPLE_HANDLER_H_ 229 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_PEOPLE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/profile_info_watcher.cc ('k') | chrome/browser/ui/webui/settings/people_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698