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_MANAGE_PROFILE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 29 matching lines...) Expand all Loading... | |
40 void OnProfileAdded(const base::FilePath& profile_path) override; | 40 void OnProfileAdded(const base::FilePath& profile_path) override; |
41 void OnProfileWasRemoved(const base::FilePath& profile_path, | 41 void OnProfileWasRemoved(const base::FilePath& profile_path, |
42 const base::string16& profile_name) override; | 42 const base::string16& profile_name) override; |
43 void OnProfileNameChanged(const base::FilePath& profile_path, | 43 void OnProfileNameChanged(const base::FilePath& profile_path, |
44 const base::string16& old_profile_name) override; | 44 const base::string16& old_profile_name) override; |
45 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; | 45 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; |
46 | 46 |
47 // ProfileSyncServiceObserver: | 47 // ProfileSyncServiceObserver: |
48 void OnStateChanged() override; | 48 void OnStateChanged() override; |
49 | 49 |
50 void HandleDeleteUserDialogShown(const base::ListValue* args); | |
Dan Beam
2015/03/18 22:36:33
make private
anthonyvd
2015/03/19 15:22:35
Acknowledged.
| |
51 | |
50 private: | 52 private: |
51 // This function creates signed in user specific strings in loadTimeData. | 53 // This function creates signed in user specific strings in loadTimeData. |
52 void GenerateSignedinUserSpecificStrings(base::DictionaryValue* dictionary); | 54 void GenerateSignedinUserSpecificStrings(base::DictionaryValue* dictionary); |
53 | 55 |
54 // Callback for the "requestDefaultProfileIcons" message. | 56 // Callback for the "requestDefaultProfileIcons" message. |
55 // Sends the array of default profile icon URLs and profile names to WebUI. | 57 // Sends the array of default profile icon URLs and profile names to WebUI. |
56 // First item of |args| is the dialog mode, i.e. "create" or "manage". | 58 // First item of |args| is the dialog mode, i.e. "create" or "manage". |
57 void RequestDefaultProfileIcons(const base::ListValue* args); | 59 void RequestDefaultProfileIcons(const base::ListValue* args); |
58 | 60 |
59 // Callback for the "requestNewProfileDefaults" message. | 61 // Callback for the "requestNewProfileDefaults" message. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
141 | 143 |
142 // For generating weak pointers to itself for callbacks. | 144 // For generating weak pointers to itself for callbacks. |
143 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; | 145 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; |
144 | 146 |
145 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); | 147 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); |
146 }; | 148 }; |
147 | 149 |
148 } // namespace options | 150 } // namespace options |
149 | 151 |
150 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 152 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
OLD | NEW |