OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 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_CONTENT_SETTINGS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CONTENT_SETTINGS_HANDLER_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" |
| 11 |
| 12 namespace base { |
| 13 class Value; |
| 14 } |
| 15 |
| 16 namespace settings { |
| 17 |
| 18 // Chrome "ContentSettings" settings page UI handler. |
| 19 class ContentSettingsHandler : public SettingsPageUIHandler { |
| 20 public: |
| 21 ContentSettingsHandler(); |
| 22 ~ContentSettingsHandler() override; |
| 23 |
| 24 // SettingsPageUIHandler implementation. |
| 25 void RegisterMessages() override; |
| 26 |
| 27 private: |
| 28 void HandleFetchToggleState(const base::ListValue* args); |
| 29 void HandleFetchData(const base::ListValue* args); |
| 30 void HandleToggleChange(const base::ListValue* args); |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(ContentSettingsHandler); |
| 33 }; |
| 34 |
| 35 } // namespace settings |
| 36 |
| 37 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CONTENT_SETTINGS_HANDLER_H_ |
OLD | NEW |