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

Unified Diff: content/public/browser/navigation_controller.h

Issue 1309323004: Create a NavigationEntry for the initial blank page. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GetEntryCount, more tests Created 5 years, 2 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: content/public/browser/navigation_controller.h
diff --git a/content/public/browser/navigation_controller.h b/content/public/browser/navigation_controller.h
index c0c18994ad652ca1859c92e10c2cd5d33a5bbf13..3ad7e03a6936c7d3840ee23607de4b7440fa7454 100644
--- a/content/public/browser/navigation_controller.h
+++ b/content/public/browser/navigation_controller.h
@@ -410,10 +410,15 @@ class NavigationController {
// Continues a repost that brought up a warning.
virtual void ContinuePendingReload() = 0;
- // Returns true if we are navigating to the URL the tab is opened with.
- // Returns false after the initial navigation has committed.
+ // Returns true if this is a newly created tab or a cloned tab, which has not
+ // yet committed a real page. Returns false after the initial navigation has
+ // committed.
virtual bool IsInitialNavigation() const = 0;
+ // Returns true if this is a newly created tab (not a clone) that has not yet
+ // committed a real page.
+ virtual bool IsInitialBlankNavigation() const = 0;
+
// Broadcasts the NOTIFICATION_NAV_ENTRY_CHANGED notification for the given
// entry. This will keep things in sync like the saved session.
virtual void NotifyEntryChanged(const NavigationEntry* entry) = 0;
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/public/browser/navigation_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698