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

Unified Diff: components/safe_browsing/web_ui/safe_browsing_ui.h

Issue 2964693003: Added experiments section and exported the list of SafeBrowsing features in WebUI (Closed)
Patch Set: Fixed the variable names according to the standard 01 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 side-by-side diff with in-line comments
Download patch
Index: components/safe_browsing/web_ui/safe_browsing_ui.h
diff --git a/components/safe_browsing/web_ui/safe_browsing_ui.h b/components/safe_browsing/web_ui/safe_browsing_ui.h
index 440fae2a086cd6e92c9b1d51ff785f38d11cc613..816c234ca7f8e2f86f58c74992c4f7c4dba2ba83 100644
--- a/components/safe_browsing/web_ui/safe_browsing_ui.h
+++ b/components/safe_browsing/web_ui/safe_browsing_ui.h
@@ -1,13 +1,32 @@
-// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_SAFE_BROWSING_UI_H_
-#define CHROME_BROWSER_UI_WEBUI_SAFE_BROWSING_UI_H_
+#ifndef COMPONENTS_SAFE_BROWSING_WEBUI_SAFE_BROWSING_UI_H_
+#define COMPONENTS_SAFE_BROWSING_WEBUI_SAFE_BROWSING_UI_H_
+#include "base/bind.h"
+#include "base/callback.h"
#include "base/macros.h"
+#include "base/values.h"
#include "content/public/browser/url_data_source.h"
+#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_controller.h"
+#include "content/public/browser/web_ui_data_source.h"
+#include "content/public/browser/web_ui_message_handler.h"
+
+namespace safe_browsing {
+class SafeBrowsingUIHandler : public content::WebUIMessageHandler {
+ public:
+ SafeBrowsingUIHandler();
+ ~SafeBrowsingUIHandler() override;
+ void ExpParamList(const base::ListValue* args);
+ void RegisterMessages() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUIHandler);
+};
// The WebUI for chrome://safe-browsing
class SafeBrowsingUI : public content::WebUIController {
@@ -18,5 +37,6 @@ class SafeBrowsingUI : public content::WebUIController {
private:
DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUI);
};
+} // namespace safe_browsing
-#endif // CHROME_BROWSER_UI_WEBUI_SAFE_BROWSING_UI_H_
+#endif // COMPONENTS_SAFE_BROWSING_WEBUI_SAFE_BROWSING_UI_H_
« 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