diff options
author | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-13 19:48:34 +0000 |
---|---|---|
committer | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-13 19:48:34 +0000 |
commit | e47ae947f945ce92d276287ee2df2987f7b1c2af (patch) | |
tree | 439510ca2dd5b69c171b22fb0df76cab023d2797 /content/browser/tab_contents/navigation_controller.h | |
parent | 314d9347ffa2de0a64fd35b415677362da0dc80a (diff) | |
download | chromium_src-e47ae947f945ce92d276287ee2df2987f7b1c2af.zip chromium_src-e47ae947f945ce92d276287ee2df2987f7b1c2af.tar.gz chromium_src-e47ae947f945ce92d276287ee2df2987f7b1c2af.tar.bz2 |
Don't show URL for pending new navigations initiated by the renderer.
BUG=99016
TEST=Click a link to a slow view-source: URL.
Review URL: http://codereview.chromium.org/8224023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/tab_contents/navigation_controller.h')
-rw-r--r-- | content/browser/tab_contents/navigation_controller.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content/browser/tab_contents/navigation_controller.h b/content/browser/tab_contents/navigation_controller.h index cadf2d5..7127057 100644 --- a/content/browser/tab_contents/navigation_controller.h +++ b/content/browser/tab_contents/navigation_controller.h @@ -180,6 +180,13 @@ class CONTENT_EXPORT NavigationController { content::PageTransition type, const std::string& extra_headers); + // Same as LoadURL, but for renderer-initiated navigations. This state is + // important for tracking whether to display pending URLs. + void LoadURLFromRenderer(const GURL& url, + const GURL& referrer, + content::PageTransition type, + const std::string& extra_headers); + // Loads the current page if this NavigationController was restored from // history and the current page has not loaded yet. void LoadIfNecessary(); @@ -331,6 +338,7 @@ class CONTENT_EXPORT NavigationController { const GURL& url, const GURL& referrer, content::PageTransition transition, + bool is_renderer_initiated, const std::string& extra_headers, content::BrowserContext* browser_context); |