Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: components/safe_browsing/web_ui/safe_browsing_ui.h

Issue 2974243002: Revert of Added experiments section and exported the list of SafeBrowsing features in WebUI (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 COMPONENTS_SAFE_BROWSING_WEBUI_SAFE_BROWSING_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SAFE_BROWSING_UI_H_
6 #define COMPONENTS_SAFE_BROWSING_WEBUI_SAFE_BROWSING_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SAFE_BROWSING_UI_H_
7 7
8 #include "base/bind.h"
9 #include "base/callback.h"
10 #include "base/macros.h" 8 #include "base/macros.h"
11 #include "base/values.h"
12 #include "content/public/browser/url_data_source.h" 9 #include "content/public/browser/url_data_source.h"
13 #include "content/public/browser/web_contents.h"
14 #include "content/public/browser/web_ui.h"
15 #include "content/public/browser/web_ui_controller.h" 10 #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 };
30 11
31 // The WebUI for chrome://safe-browsing 12 // The WebUI for chrome://safe-browsing
32 class SafeBrowsingUI : public content::WebUIController { 13 class SafeBrowsingUI : public content::WebUIController {
33 public: 14 public:
34 explicit SafeBrowsingUI(content::WebUI* web_ui); 15 explicit SafeBrowsingUI(content::WebUI* web_ui);
35 ~SafeBrowsingUI() override; 16 ~SafeBrowsingUI() override;
36 17
37 private: 18 private:
38 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUI); 19 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUI);
39 }; 20 };
40 } // namespace safe_browsing
41 21
42 #endif // COMPONENTS_SAFE_BROWSING_WEBUI_SAFE_BROWSING_UI_H_ 22 #endif // CHROME_BROWSER_UI_WEBUI_SAFE_BROWSING_UI_H_
OLDNEW
« no previous file with comments | « components/safe_browsing/web_ui/resources/safe_browsing.js ('k') | components/safe_browsing/web_ui/safe_browsing_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698