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 23 matching lines...) Expand all Loading... |
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 a navigation committed. | 37 // Called when a navigation committed. |
38 virtual void DidCommitNavigation(NavigationHandle* navigation_handle) {} | 38 virtual void DidCommitNavigation(NavigationHandle* navigation_handle) {} |
39 | 39 |
40 // Called when a document load resulting from the navigation stopped. Note | 40 // Called when a document load resulting from the navigation stopped. Note |
41 // that |navigation_handle| will be destroyed at the end of this call. | 41 // that |navigation_handle| will be destroyed at the end of this call. |
42 virtual void DidFinishNavigation(NavigationHandle* navigation_handle) {} | 42 virtual void DidFinishNavigation(NavigationHandle* navigation_handle) {} |
43 | 43 |
| 44 // Called when the network request is about to start to register the |
| 45 // NavigationThrottles for the navigation. |
| 46 virtual void AddNavigationThrottles(NavigationHandle* navigation_handle) {} |
| 47 |
44 // TODO(clamy): all methods below that are related to navigation | 48 // TODO(clamy): all methods below that are related to navigation |
45 // events should go away in favor of the ones above. | 49 // events should go away in favor of the ones above. |
46 | 50 |
47 // The RenderFrameHost started a provisional load for the frame | 51 // The RenderFrameHost started a provisional load for the frame |
48 // represented by |render_frame_host|. | 52 // represented by |render_frame_host|. |
49 virtual void DidStartProvisionalLoad( | 53 virtual void DidStartProvisionalLoad( |
50 RenderFrameHostImpl* render_frame_host, | 54 RenderFrameHostImpl* render_frame_host, |
51 const GURL& validated_url, | 55 const GURL& validated_url, |
52 bool is_error_page, | 56 bool is_error_page, |
53 bool is_iframe_srcdoc) {} | 57 bool is_iframe_srcdoc) {} |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // throbber stopping. | 131 // throbber stopping. |
128 virtual void DidStopLoading() {} | 132 virtual void DidStopLoading() {} |
129 | 133 |
130 // The load progress was changed. | 134 // The load progress was changed. |
131 virtual void DidChangeLoadProgress() {} | 135 virtual void DidChangeLoadProgress() {} |
132 }; | 136 }; |
133 | 137 |
134 } // namspace content | 138 } // namspace content |
135 | 139 |
136 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 140 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |