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

Unified Diff: components/security_interstitials/core/superfish_error_ui.h

Issue 2949003003: Implement a skeleton of the Superfish interstitial (Closed)
Patch Set: meacer comments Created 3 years, 6 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/security_interstitials/core/superfish_error_ui.h
diff --git a/components/security_interstitials/core/superfish_error_ui.h b/components/security_interstitials/core/superfish_error_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..efd984acb5e27bdae9c1fb16708025017cca1865
--- /dev/null
+++ b/components/security_interstitials/core/superfish_error_ui.h
@@ -0,0 +1,36 @@
+// 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 COMPONENTS_SECURITY_INTERSTITIALS_CORE_SUPERFISH_ERROR_UI_H_
+#define COMPONENTS_SECURITY_INTERSTITIALS_CORE_SUPERFISH_ERROR_UI_H_
+
+#include "components/security_interstitials/core/ssl_error_ui.h"
+
+namespace security_interstitials {
+
+class ControllerClient;
+
+// A subclass of SSLErrorUI that customizes the error UI with instructions for
+// uninstalling the Superfish software.
+class SuperfishErrorUI : public SSLErrorUI {
+ public:
+ SuperfishErrorUI(
+ const GURL& request_url,
+ int cert_error,
+ const net::SSLInfo& ssl_info,
+ int display_options, // Bitmask of SSLErrorOptionsMask values.
+ const base::Time& time_triggered,
+ ControllerClient* controller);
+ ~SuperfishErrorUI() override {}
+
+ void PopulateStringsForHTML(base::DictionaryValue* load_time_data) override;
+ void HandleCommand(SecurityInterstitialCommands command) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SuperfishErrorUI);
+};
+
+} // namespace security_interstitials
+
+#endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_SUPERFISH_ERROR_UI_H_

Powered by Google App Engine
This is Rietveld 408576698