OLD | NEW |
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" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 // sync_driver::SyncServiceObserver implementation. | 66 // sync_driver::SyncServiceObserver implementation. |
67 void OnStateChanged() override; | 67 void OnStateChanged() override; |
68 | 68 |
69 // ProfileInfoCacheObserver implementation. | 69 // ProfileInfoCacheObserver implementation. |
70 void OnProfileNameChanged(const base::FilePath& profile_path, | 70 void OnProfileNameChanged(const base::FilePath& profile_path, |
71 const base::string16& old_profile_name) override; | 71 const base::string16& old_profile_name) override; |
72 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; | 72 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; |
73 | 73 |
74 // Initializes the sync setup flow and shows the setup UI. | 74 // Initializes the sync setup flow and shows the setup UI. |
75 void OpenSyncSetup(const base::ListValue* args); | 75 void OpenSyncSetup(bool creating_supervised_user); |
76 | 76 |
77 // Shows advanced configuration dialog without going through sign in dialog. | 77 // Shows advanced configuration dialog without going through sign in dialog. |
78 // Kicks the sync backend if necessary with showing spinner dialog until it | 78 // Kicks the sync backend if necessary with showing spinner dialog until it |
79 // gets ready. | 79 // gets ready. |
80 void OpenConfigureSync(); | 80 void OpenConfigureSync(); |
81 | 81 |
82 // Terminates the sync setup flow. | 82 // Terminates the sync setup flow. |
83 void CloseSyncSetup(); | 83 void CloseSyncSetup(); |
84 | 84 |
85 // Returns a newly created dictionary with a number of properties that | 85 // Returns a newly created dictionary with a number of properties that |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 200 |
201 // Manages observer lifetime. | 201 // Manages observer lifetime. |
202 ScopedObserver<ProfileSyncService, PeopleHandler> sync_service_observer_; | 202 ScopedObserver<ProfileSyncService, PeopleHandler> sync_service_observer_; |
203 | 203 |
204 DISALLOW_COPY_AND_ASSIGN(PeopleHandler); | 204 DISALLOW_COPY_AND_ASSIGN(PeopleHandler); |
205 }; | 205 }; |
206 | 206 |
207 } // namespace settings | 207 } // namespace settings |
208 | 208 |
209 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_PEOPLE_HANDLER_H_ | 209 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_PEOPLE_HANDLER_H_ |
OLD | NEW |