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/macros.h" | 10 #include "base/macros.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // ProfileAttributesStorage::Observer: | 41 // ProfileAttributesStorage::Observer: |
42 void OnProfileAdded(const base::FilePath& profile_path) override; | 42 void OnProfileAdded(const base::FilePath& profile_path) override; |
43 void OnProfileWasRemoved(const base::FilePath& profile_path, | 43 void OnProfileWasRemoved(const base::FilePath& profile_path, |
44 const base::string16& profile_name) override; | 44 const base::string16& profile_name) override; |
45 void OnProfileNameChanged(const base::FilePath& profile_path, | 45 void OnProfileNameChanged(const base::FilePath& profile_path, |
46 const base::string16& old_profile_name) override; | 46 const base::string16& old_profile_name) override; |
47 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; | 47 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; |
48 | 48 |
49 // syncer::SyncServiceObserver: | 49 // syncer::SyncServiceObserver: |
50 void OnStateChanged() override; | 50 void OnStateChanged(syncer::SyncService* sync) override; |
51 | 51 |
52 private: | 52 private: |
53 // This function creates signed in user specific strings in loadTimeData. | 53 // This function creates signed in user specific strings in loadTimeData. |
54 void GenerateSignedinUserSpecificStrings(base::DictionaryValue* dictionary); | 54 void GenerateSignedinUserSpecificStrings(base::DictionaryValue* dictionary); |
55 | 55 |
56 // Callback for the "requestDefaultProfileIcons" message. | 56 // Callback for the "requestDefaultProfileIcons" message. |
57 // 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. |
58 // 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". |
59 void RequestDefaultProfileIcons(const base::ListValue* args); | 59 void RequestDefaultProfileIcons(const base::ListValue* args); |
60 | 60 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 136 |
137 // For generating weak pointers to itself for callbacks. | 137 // For generating weak pointers to itself for callbacks. |
138 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; | 138 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); | 140 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); |
141 }; | 141 }; |
142 | 142 |
143 } // namespace options | 143 } // namespace options |
144 | 144 |
145 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 145 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
OLD | NEW |