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

Side by Side Diff: components/security_interstitials/core/ssl_error_ui.h

Issue 2949003003: Implement a skeleton of the Superfish interstitial (Closed)
Patch Set: actually fix excessive output problem 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SECURITY_INTERSTITIALS_CORE_SSL_ERROR_UI_H_ 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CORE_SSL_ERROR_UI_H_
6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_SSL_ERROR_UI_H_ 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_SSL_ERROR_UI_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 27 matching lines...) Expand all
38 // decision has expired. 38 // decision has expired.
39 EXPIRED_BUT_PREVIOUSLY_ALLOWED = 1 << 3, 39 EXPIRED_BUT_PREVIOUSLY_ALLOWED = 1 << 3,
40 }; 40 };
41 41
42 SSLErrorUI(const GURL& request_url, 42 SSLErrorUI(const GURL& request_url,
43 int cert_error, 43 int cert_error,
44 const net::SSLInfo& ssl_info, 44 const net::SSLInfo& ssl_info,
45 int display_options, // Bitmask of SSLErrorOptionsMask values. 45 int display_options, // Bitmask of SSLErrorOptionsMask values.
46 const base::Time& time_triggered, 46 const base::Time& time_triggered,
47 ControllerClient* controller); 47 ControllerClient* controller);
48 ~SSLErrorUI(); 48 virtual ~SSLErrorUI();
49 49
50 void PopulateStringsForHTML(base::DictionaryValue* load_time_data); 50 virtual void PopulateStringsForHTML(base::DictionaryValue* load_time_data);
51 void HandleCommand(SecurityInterstitialCommands command); 51 virtual void HandleCommand(SecurityInterstitialCommands command);
52
53 protected:
54 const net::SSLInfo& ssl_info() const;
55 const base::Time& time_triggered() const;
56 ControllerClient* controller() const;
57 int cert_error() const;
52 58
53 private: 59 private:
54 void PopulateOverridableStrings(base::DictionaryValue* load_time_data); 60 void PopulateOverridableStrings(base::DictionaryValue* load_time_data);
55 void PopulateNonOverridableStrings(base::DictionaryValue* load_time_data); 61 void PopulateNonOverridableStrings(base::DictionaryValue* load_time_data);
56 62
57 const GURL request_url_; 63 const GURL request_url_;
58 const int cert_error_; 64 const int cert_error_;
59 const net::SSLInfo ssl_info_; 65 const net::SSLInfo ssl_info_;
60 const base::Time time_triggered_; 66 const base::Time time_triggered_;
61 67
62 // Set by the |display_options|. 68 // Set by the |display_options|.
63 const bool requested_strict_enforcement_; 69 const bool requested_strict_enforcement_;
64 const bool soft_override_enabled_; // UI provides a button to dismiss error. 70 const bool soft_override_enabled_; // UI provides a button to dismiss error.
65 const bool hard_override_enabled_; // Dismissing allowed, but no button. 71 const bool hard_override_enabled_; // Dismissing allowed, but no button.
66 72
67 ControllerClient* controller_; 73 ControllerClient* controller_;
68 bool user_made_decision_; // Whether the user made a choice in the UI. 74 bool user_made_decision_; // Whether the user made a choice in the UI.
69 75
70 DISALLOW_COPY_AND_ASSIGN(SSLErrorUI); 76 DISALLOW_COPY_AND_ASSIGN(SSLErrorUI);
71 }; 77 };
72 78
73 } // security_interstitials 79 } // security_interstitials
74 80
75 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_SSL_ERROR_UI_H_ 81 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_SSL_ERROR_UI_H_
OLDNEW
« no previous file with comments | « components/security_interstitials/core/BUILD.gn ('k') | components/security_interstitials/core/ssl_error_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698