| 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_SETTINGS_MANAGE_PROFILE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/scoped_observer.h" | 12 #include "base/scoped_observer.h" |
| 13 #include "chrome/browser/profiles/profile_attributes_storage.h" | 13 #include "chrome/browser/profiles/profile_attributes_storage.h" |
| 14 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" | 14 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| 15 | 15 |
| 16 namespace base { | |
| 17 class StringValue; | |
| 18 } | |
| 19 | |
| 20 class Profile; | 16 class Profile; |
| 21 | 17 |
| 22 namespace settings { | 18 namespace settings { |
| 23 | 19 |
| 24 // Chrome personal stuff profiles manage overlay UI handler. | 20 // Chrome personal stuff profiles manage overlay UI handler. |
| 25 class ManageProfileHandler : public settings::SettingsPageUIHandler, | 21 class ManageProfileHandler : public settings::SettingsPageUIHandler, |
| 26 public ProfileAttributesStorage::Observer { | 22 public ProfileAttributesStorage::Observer { |
| 27 public: | 23 public: |
| 28 explicit ManageProfileHandler(Profile* profile); | 24 explicit ManageProfileHandler(Profile* profile); |
| 29 ~ManageProfileHandler() override; | 25 ~ManageProfileHandler() override; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 83 |
| 88 // For generating weak pointers to itself for callbacks. | 84 // For generating weak pointers to itself for callbacks. |
| 89 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; | 85 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; |
| 90 | 86 |
| 91 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); | 87 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); |
| 92 }; | 88 }; |
| 93 | 89 |
| 94 } // namespace settings | 90 } // namespace settings |
| 95 | 91 |
| 96 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_ | 92 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_MANAGE_PROFILE_HANDLER_H_ |
| OLD | NEW |