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

Unified Diff: components/toolbar/toolbar_model.h

Issue 2144903004: New location security strings and animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/toolbar/toolbar_model.h
diff --git a/components/toolbar/toolbar_model.h b/components/toolbar/toolbar_model.h
index afc86a9c1e9bfb238d4c9a872165b337b5401664..e36dcdbf293722adf00b3bad2cda3234bfffadf3 100644
--- a/components/toolbar/toolbar_model.h
+++ b/components/toolbar/toolbar_model.h
@@ -74,6 +74,9 @@ class ToolbarModel {
// Like GetIcon(), but gets the vector asset ID.
virtual gfx::VectorIconId GetVectorIcon() const = 0;
+ // Returns text for the omnibox secure verbose chip.
+ virtual base::string16 GetSecureVerboseText() const = 0;
+
// Returns the name of the EV cert holder. This returns an empty string if
// the security level is not EV_SECURE.
virtual base::string16 GetEVCertName() const = 0;
@@ -82,6 +85,9 @@ class ToolbarModel {
// in the location bar.
virtual bool ShouldDisplayURL() const = 0;
+ // Returns the EV cert object.
+ virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0;
Peter Kasting 2016/07/19 21:17:21 Nit: Seems like this should maybe be moved up one
Kevin Bailey 2016/08/12 18:49:15 Done. Fixed in toolbar_model_impl.h too.
+
// Whether the text in the omnibox is currently being edited.
void set_input_in_progress(bool input_in_progress) {
input_in_progress_ = input_in_progress;

Powered by Google App Engine
This is Rietveld 408576698