| 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 16 matching lines...) Expand all Loading... |
| 27 // related events. | 27 // related events. |
| 28 class CONTENT_EXPORT NavigatorDelegate { | 28 class CONTENT_EXPORT NavigatorDelegate { |
| 29 public: | 29 public: |
| 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. |
| 38 virtual void ReadyToCommitNavigation(NavigationHandle* navigation_handle) {} |
| 39 |
| 37 // Called when a navigation committed. | 40 // Called when a navigation committed. |
| 38 virtual void DidCommitNavigation(NavigationHandle* navigation_handle) {} | 41 virtual void DidCommitNavigation(NavigationHandle* navigation_handle) {} |
| 39 | 42 |
| 40 // Called when a document load resulting from the navigation stopped. Note | 43 // Called when a document load resulting from the navigation stopped. Note |
| 41 // that |navigation_handle| will be destroyed at the end of this call. | 44 // that |navigation_handle| will be destroyed at the end of this call. |
| 42 virtual void DidFinishNavigation(NavigationHandle* navigation_handle) {} | 45 virtual void DidFinishNavigation(NavigationHandle* navigation_handle) {} |
| 43 | 46 |
| 44 // TODO(clamy): all methods below that are related to navigation | 47 // TODO(clamy): all methods below that are related to navigation |
| 45 // events should go away in favor of the ones above. | 48 // events should go away in favor of the ones above. |
| 46 | 49 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // throbber stopping. | 130 // throbber stopping. |
| 128 virtual void DidStopLoading() {} | 131 virtual void DidStopLoading() {} |
| 129 | 132 |
| 130 // The load progress was changed. | 133 // The load progress was changed. |
| 131 virtual void DidChangeLoadProgress() {} | 134 virtual void DidChangeLoadProgress() {} |
| 132 }; | 135 }; |
| 133 | 136 |
| 134 } // namspace content | 137 } // namspace content |
| 135 | 138 |
| 136 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 139 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
| OLD | NEW |