commit | 0e119884df53589ff1a2fe109fe09a7b8e7dac1d | [log] [tgz] |
---|---|---|
author | clamy <[email protected]> | Fri Jul 31 16:12:33 2015 |
committer | Commit bot <[email protected]> | Fri Jul 31 16:13:01 2015 |
tree | 7733069b6543001a49016cbef6176c64494376d9 | |
parent | be70217c2fc017bb5c2d3eca8fb9d2d97c979597 [diff] [blame] |
Add a NavigationHandle class to content/public/browser This CL adds a new class, NavigationHandle, to the public content API. that is used to keep track of information pertaining to a single navigation. The CL also introduces four new methods to WebContentsObserver: DidStartNavigation, DidRedirectNavigation, DidCommitNavigation and DidStopNavigation. All of those provide a NavigationHandle to the implementer for further details about navigations happening in the WebContents. See the design doc for more info: https://docs.google.com/a/chromium.org/document/d/1ICLLQoC9EsZ-bWH4ZKRhPCIoZKn6pOj02SlGl6SKH6Y/edit?usp=sharing. This CL also rewrites the CaptivePortalTabHelper to make use of the newly introduced interfaces. BUG=504347 Review URL: https://codereview.chromium.org/1229503010 Cr-Commit-Position: refs/heads/master@{#341342}
diff --git a/content/test/test_web_contents.h b/content/test/test_web_contents.h index 3e45d8a..17134f2 100644 --- a/content/test/test_web_contents.h +++ b/content/test/test_web_contents.h
@@ -45,6 +45,7 @@ // WebContentsTester implementation. void CommitPendingNavigation() override; TestRenderFrameHost* GetPendingMainFrame() const override; + void StartNavigation(const GURL& url) override; void NavigateAndCommit(const GURL& url) override; void TestSetIsLoading(bool value) override; void ProceedWithCrossSiteNavigation() override;