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

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: Changed the location of features.cc/.h 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..13755ec93f26c7043eca0ae426de34f6787727b1 100644
--- a/components/safe_browsing/web_ui/safe_browsing_ui.h
+++ b/components/safe_browsing/web_ui/safe_browsing_ui.h
@@ -1,13 +1,31 @@
-// 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"
+
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.
+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 {
@@ -19,4 +37,4 @@ class SafeBrowsingUI : public content::WebUIController {
DISALLOW_COPY_AND_ASSIGN(SafeBrowsingUI);
};
-#endif // CHROME_BROWSER_UI_WEBUI_SAFE_BROWSING_UI_H_
+#endif // COMPONENTS_SAFE_BROWSING_WEBUI_SAFE_BROWSING_UI_H_

Powered by Google App Engine
This is Rietveld 408576698