| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "content/public/browser/invalidate_type.h" | 9 #include "content/public/browser/invalidate_type.h" |
| 10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // Called when a navigation started. The same NavigationHandle will be | 30 // Called when a navigation started. The same NavigationHandle will be |
| 31 // provided for events related to the same navigation. | 31 // provided for events related to the same navigation. |
| 32 virtual void DidStartNavigation(NavigationHandle* navigation_handle) {} | 32 virtual void DidStartNavigation(NavigationHandle* navigation_handle) {} |
| 33 | 33 |
| 34 // Called when a navigation was redirected. | 34 // Called when a navigation was redirected. |
| 35 virtual void DidRedirectNavigation(NavigationHandle* navigation_handle) {} | 35 virtual void DidRedirectNavigation(NavigationHandle* navigation_handle) {} |
| 36 | 36 |
| 37 // Called when the navigation is about to be committed in a renderer. | 37 // Called when the navigation is about to be committed in a renderer. |
| 38 virtual void ReadyToCommitNavigation(NavigationHandle* navigation_handle) {} | 38 virtual void ReadyToCommitNavigation(NavigationHandle* navigation_handle) {} |
| 39 | 39 |
| 40 // Called when a navigation committed. | 40 // Called when the navigation finished: it was either committed or canceled |
| 41 virtual void DidCommitNavigation(NavigationHandle* navigation_handle) {} | 41 // before commit. Note that |navigation_handle| will be destroyed at the end |
| 42 | 42 // of this call. |
| 43 // Called when a document load resulting from the navigation stopped. Note | |
| 44 // that |navigation_handle| will be destroyed at the end of this call. | |
| 45 virtual void DidFinishNavigation(NavigationHandle* navigation_handle) {} | 43 virtual void DidFinishNavigation(NavigationHandle* navigation_handle) {} |
| 46 | 44 |
| 47 // TODO(clamy): all methods below that are related to navigation | 45 // TODO(clamy): all methods below that are related to navigation |
| 48 // events should go away in favor of the ones above. | 46 // events should go away in favor of the ones above. |
| 49 | 47 |
| 50 // The RenderFrameHost started a provisional load for the frame | 48 // The RenderFrameHost started a provisional load for the frame |
| 51 // represented by |render_frame_host|. | 49 // represented by |render_frame_host|. |
| 52 virtual void DidStartProvisionalLoad( | 50 virtual void DidStartProvisionalLoad( |
| 53 RenderFrameHostImpl* render_frame_host, | 51 RenderFrameHostImpl* render_frame_host, |
| 54 const GURL& validated_url, | 52 const GURL& validated_url, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // throbber stopping. | 128 // throbber stopping. |
| 131 virtual void DidStopLoading() {} | 129 virtual void DidStopLoading() {} |
| 132 | 130 |
| 133 // The load progress was changed. | 131 // The load progress was changed. |
| 134 virtual void DidChangeLoadProgress() {} | 132 virtual void DidChangeLoadProgress() {} |
| 135 }; | 133 }; |
| 136 | 134 |
| 137 } // namspace content | 135 } // namspace content |
| 138 | 136 |
| 139 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 137 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
| OLD | NEW |