OLD | NEW |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_SAFE_BROWSING_UI_H_ | 5 #ifndef COMPONENTS_SAFE_BROWSING_WEBUI_SAFE_BROWSING_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SAFE_BROWSING_UI_H_ | 6 #define COMPONENTS_SAFE_BROWSING_WEBUI_SAFE_BROWSING_UI_H_ |
7 | 7 |
| 8 #include "base/bind.h" |
| 9 #include "base/callback.h" |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/values.h" |
9 #include "content/public/browser/url_data_source.h" | 12 #include "content/public/browser/url_data_source.h" |
| 13 #include "content/public/browser/web_contents.h" |
| 14 #include "content/public/browser/web_ui.h" |
10 #include "content/public/browser/web_ui_controller.h" | 15 #include "content/public/browser/web_ui_controller.h" |
| 16 #include "content/public/browser/web_ui_data_source.h" |
| 17 #include "content/public/browser/web_ui_message_handler.h" |
| 18 |
| 19 namespace safe_browsing { |
| 20 class SafeBrowsingUIHandler : public content::WebUIMessageHandler { |
| 21 public: |
| 22 SafeBrowsingUIHandler(); |
| 23 ~SafeBrowsingUIHandler() override; |
| 24 void ExpParamList(const base::ListValue* args); |
| 25 void RegisterMessages() override; |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUIHandler); |
| 29 }; |
11 | 30 |
12 // The WebUI for chrome://safe-browsing | 31 // The WebUI for chrome://safe-browsing |
13 class SafeBrowsingUI : public content::WebUIController { | 32 class SafeBrowsingUI : public content::WebUIController { |
14 public: | 33 public: |
15 explicit SafeBrowsingUI(content::WebUI* web_ui); | 34 explicit SafeBrowsingUI(content::WebUI* web_ui); |
16 ~SafeBrowsingUI() override; | 35 ~SafeBrowsingUI() override; |
17 | 36 |
18 private: | 37 private: |
19 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUI); | 38 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUI); |
20 }; | 39 }; |
| 40 } // namespace safe_browsing |
21 | 41 |
22 #endif // CHROME_BROWSER_UI_WEBUI_SAFE_BROWSING_UI_H_ | 42 #endif // COMPONENTS_SAFE_BROWSING_WEBUI_SAFE_BROWSING_UI_H_ |
OLD | NEW |