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

Unified Diff: components/toolbar/toolbar_model.h

Issue 2965043003: ToolbarModel: Supply offline page status. (Closed)
Patch Set: Created 3 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 8aa1727dc91d215a6f53a09f323d09b578e8dc11..05648825ce84031cccd5bc54e511e8826033ea5b 100644
--- a/components/toolbar/toolbar_model.h
+++ b/components/toolbar/toolbar_model.h
@@ -60,6 +60,10 @@ class ToolbarModel {
// in the location bar.
virtual bool ShouldDisplayURL() const = 0;
+ // Returns whether the page is an offline page, sourced from a cache of
+ // previously-downloaded content.
+ virtual bool IsOfflinePage() const = 0;
+
// 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