Chromium Code Reviews| Index: content/public/browser/web_contents_observer.h |
| diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h |
| index 32a11dd9be3a867304de28a005030d553062d000..ae1cba456c33959c267a6f68d7141c8f62ca984f 100644 |
| --- a/content/public/browser/web_contents_observer.h |
| +++ b/content/public/browser/web_contents_observer.h |
| @@ -143,6 +143,10 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener, |
| // Note that this is fired by navigations in any frame of the WebContents, |
| // not just the main frame. |
| // |
| + // Note that this is fired by same-page navigations, such as fragment |
| + // navigations or pushState, which will not result in a document change. To |
|
nasko
2016/11/30 17:22:12
nit: pushState/replaceState.
clamy
2016/11/30 17:26:13
Done.
|
| + // filter these out, use NavigationHandle::IsSamePage. |
| + // |
| // Note that more than one navigation can be ongoing in the same frame at the |
| // same time (including the main frame). Each will get its own |
| // NavigationHandle. |
| @@ -178,6 +182,10 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener, |
| // and related methods to listen for continued events from this |
| // RenderFrameHost. |
| // |
| + // Note that this is fired by same-page navigations, such as fragment |
| + // navigations or pushState, which will not result in a document change. To |
| + // filter these out, use NavigationHandle::IsSamePage. |
| + // |
| // Note that |navigation_handle| will be destroyed at the end of this call, |
| // so do not keep a reference to it afterward. |
| virtual void DidFinishNavigation(NavigationHandle* navigation_handle) {} |