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

Unified Diff: components/toolbar/toolbar_model.h

Issue 1578193002: Remove ChromeToolbarModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add DEPS file Created 4 years, 11 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
« no previous file with comments | « components/toolbar/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/toolbar/toolbar_model.h
diff --git a/components/toolbar/toolbar_model.h b/components/toolbar/toolbar_model.h
index 0a12208be1584357bc9affbe7900e488a95cc21b..d0aee6b5596410c0a2f947e0a022b1880eff057f 100644
--- a/components/toolbar/toolbar_model.h
+++ b/components/toolbar/toolbar_model.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/strings/string16.h"
+#include "components/security_state/security_state_model.h"
#include "url/gurl.h"
namespace gfx {
@@ -60,6 +61,13 @@ class ToolbarModel {
// in progress in the omnibox.
virtual bool WouldPerformSearchTermReplacement(bool ignore_editing) const = 0;
+ // Returns the security level that the toolbar should display. If
+ // |ignore_editing| is true, the result reflects the underlying state of the
+ // page without regard to any user edits that may be in progress in the
+ // omnibox.
+ virtual security_state::SecurityStateModel::SecurityLevel GetSecurityLevel(
+ bool ignore_editing) const = 0;
+
// Returns true if a call to GetText() would return something other than the
// URL because of search term replacement.
bool WouldReplaceURL() const;
« no previous file with comments | « components/toolbar/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698