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_ |