| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_PASSWORDS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_PASSWORDS_HANDLER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" |
| 10 |
| 11 namespace content { |
| 12 class WebUI; |
| 13 } |
| 14 |
| 15 class Profile; |
| 16 |
| 17 namespace settings { |
| 18 |
| 19 class PasswordsHandler : public SettingsPageUIHandler { |
| 20 public: |
| 21 explicit PasswordsHandler(content::WebUI* webui); |
| 22 ~PasswordsHandler() override; |
| 23 |
| 24 // SettingsPageUIHandler: |
| 25 void RegisterMessages() override; |
| 26 |
| 27 private: |
| 28 // Sets whether chrome should offer to save passwords or not. |
| 29 void HandleSetPaswordSaving(const base::ListValue* args); |
| 30 |
| 31 Profile* profile_; // Weak pointer. |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(PasswordsHandler); |
| 34 }; |
| 35 |
| 36 } // namespace settings |
| 37 |
| 38 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_PASSWORDS_HANDLER_H_ |
| OLD | NEW |