Chromium Code Reviews| 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 | |
|
Jialiu Lin
2017/07/06 23:58:27
maybe put theses 2 classes into safe_browsing name
hkamila
2017/07/07 01:29:50
Acknowledged.
| |
| 19 class SafeBrowsingUIHandler : public content::WebUIMessageHandler { | |
| 20 public: | |
| 21 SafeBrowsingUIHandler(); | |
| 22 ~SafeBrowsingUIHandler() override; | |
| 23 void ExpParamList(const base::ListValue* args); | |
| 24 void RegisterMessages() override; | |
| 25 | |
| 26 private: | |
| 27 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUIHandler); | |
| 28 }; | |
| 11 | 29 |
| 12 // The WebUI for chrome://safe-browsing | 30 // The WebUI for chrome://safe-browsing |
| 13 class SafeBrowsingUI : public content::WebUIController { | 31 class SafeBrowsingUI : public content::WebUIController { |
| 14 public: | 32 public: |
| 15 explicit SafeBrowsingUI(content::WebUI* web_ui); | 33 explicit SafeBrowsingUI(content::WebUI* web_ui); |
| 16 ~SafeBrowsingUI() override; | 34 ~SafeBrowsingUI() override; |
| 17 | 35 |
| 18 private: | 36 private: |
| 19 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUI); | 37 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUI); |
| 20 }; | 38 }; |
| 21 | 39 |
| 22 #endif // CHROME_BROWSER_UI_WEBUI_SAFE_BROWSING_UI_H_ | 40 #endif // COMPONENTS_SAFE_BROWSING_WEBUI_SAFE_BROWSING_UI_H_ |
| OLD | NEW |