Index: components/omnibox/browser/omnibox_view.h |
diff --git a/components/omnibox/browser/omnibox_view.h b/components/omnibox/browser/omnibox_view.h |
index 462070f53bbace1d8ba5d7db571c993bc5c9d973..81149a9fa246d004b50128c183f7988ccaca6470 100644 |
--- a/components/omnibox/browser/omnibox_view.h |
+++ b/components/omnibox/browser/omnibox_view.h |
@@ -22,6 +22,7 @@ |
#include "base/strings/utf_string_conversions.h" |
#include "components/omnibox/browser/autocomplete_match.h" |
#include "components/omnibox/browser/omnibox_edit_model.h" |
+#include "components/security_state/security_state_model.h" |
#include "ui/base/window_open_disposition.h" |
#include "ui/gfx/native_widget_types.h" |
@@ -71,6 +72,12 @@ class OmniboxView { |
// browser, or just whatever the user has currently typed. |
virtual base::string16 GetText() const = 0; |
+ // Returns the security level to display in the omnibox. This aligns with the |
+ // toolbar model's notion of security but overrides it if the input is |
+ // editing or empty. |
+ security_state::SecurityStateModel::SecurityLevel GetSecurityLevelForDisplay() |
+ const; |
+ |
// |true| if the user is in the process of editing the field, or if |
// the field is empty. |
bool IsEditingOrEmpty() const; |