summaryrefslogtreecommitdiffstats
path: root/content/browser/tab_contents/navigation_controller.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-28 18:37:25 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-28 18:37:25 +0000
commit022af74f8f0ab0ed381cc64831c7ad3921d02a7b (patch)
treed5a9492eeb97f71fa6670114b4736bc1c756afb1 /content/browser/tab_contents/navigation_controller.h
parent4f57823d8673c30668f562ff20290bb12b3eda83 (diff)
downloadchromium_src-022af74f8f0ab0ed381cc64831c7ad3921d02a7b.zip
chromium_src-022af74f8f0ab0ed381cc64831c7ad3921d02a7b.tar.gz
chromium_src-022af74f8f0ab0ed381cc64831c7ad3921d02a7b.tar.bz2
Remove the remaining usages of NavigationEntry in chrome by converting a few more NavigationController methods to return the interface. In a followup, I'll rename NavigationEntry to NavigationEntryImpl, then create an interface for NavigationController.
BUG=98716 TBR=joi Review URL: http://codereview.chromium.org/9004045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115900 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/tab_contents/navigation_controller.h')
-rw-r--r--content/browser/tab_contents/navigation_controller.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/content/browser/tab_contents/navigation_controller.h b/content/browser/tab_contents/navigation_controller.h
index 1a309d5..79372a26 100644
--- a/content/browser/tab_contents/navigation_controller.h
+++ b/content/browser/tab_contents/navigation_controller.h
@@ -121,13 +121,11 @@ class CONTENT_EXPORT NavigationController {
return static_cast<int>(entries_.size());
}
- NavigationEntry* GetEntryAtIndex(int index) const {
- return entries_.at(index).get();
- }
+ content::NavigationEntry* GetEntryAtIndex(int index) const;
// Returns the entry at the specified offset from current. Returns NULL
// if out of bounds.
- NavigationEntry* GetEntryAtOffset(int offset) const;
+ content::NavigationEntry* GetEntryAtOffset(int offset) const;
// Returns the index of the specified entry, or -1 if entry is not contained
// in this NavigationController.
@@ -150,9 +148,7 @@ class CONTENT_EXPORT NavigationController {
// Returns the pending entry corresponding to the navigation that is
// currently in progress, or null if there is none.
- NavigationEntry* pending_entry() const {
- return pending_entry_;
- }
+ content::NavigationEntry* GetPendingEntry() const;
// Returns the index of the pending entry or -1 if the pending entry
// corresponds to a new navigation (created via LoadURL).
@@ -173,7 +169,7 @@ class CONTENT_EXPORT NavigationController {
// Returns the transient entry if any. Note that the returned entry is owned
// by the navigation controller and may be deleted at any time.
- NavigationEntry* GetTransientEntry() const;
+ content::NavigationEntry* GetTransientEntry() const;
// New navigations -----------------------------------------------------------
@@ -273,7 +269,7 @@ class CONTENT_EXPORT NavigationController {
// Broadcasts the NOTIFY_NAV_ENTRY_CHANGED notification for the given entry
// (which must be at the given index). This will keep things in sync like
// the saved session.
- void NotifyEntryChanged(const NavigationEntry* entry, int index);
+ void NotifyEntryChanged(const content::NavigationEntry* entry, int index);
// Returns true if the given URL would be an in-page navigation (i.e. only
// the reference fragment is different) from the "last committed entry". We do
@@ -351,7 +347,14 @@ class CONTENT_EXPORT NavigationController {
// Creates navigation entry and translates the virtual url to a real one.
// Used when navigating to a new URL using LoadURL. Extra headers are
// separated by \n.
- static NavigationEntry* CreateNavigationEntry(
+ static content::NavigationEntry* CreateNavigationEntry(
+ const GURL& url,
+ const content::Referrer& referrer,
+ content::PageTransition transition,
+ bool is_renderer_initiated,
+ const std::string& extra_headers,
+ content::BrowserContext* browser_context);
+ static NavigationEntry* CreateNavigationEntryImpl(
const GURL& url,
const content::Referrer& referrer,
content::PageTransition transition,