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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // NavigationEntry has started in the browser process. | 101 // NavigationEntry has started in the browser process. |
102 virtual void DidStartNavigationToPendingEntry( | 102 virtual void DidStartNavigationToPendingEntry( |
103 const GURL& url, | 103 const GURL& url, |
104 NavigationController::ReloadType reload_type) {} | 104 NavigationController::ReloadType reload_type) {} |
105 | 105 |
106 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which | 106 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which |
107 // this forwards to. | 107 // this forwards to. |
108 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 108 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
109 const OpenURLParams& params) {} | 109 const OpenURLParams& params) {} |
110 | 110 |
| 111 // Returns whether to continue a navigation that needs to transfer to a |
| 112 // different process between the load start and commit. |
| 113 virtual bool ShouldTransferNavigation(); |
| 114 |
111 // Returns whether URLs for aborted browser-initiated navigations should be | 115 // Returns whether URLs for aborted browser-initiated navigations should be |
112 // preserved in the omnibox. Defaults to false. | 116 // preserved in the omnibox. Defaults to false. |
113 virtual bool ShouldPreserveAbortedURLs(); | 117 virtual bool ShouldPreserveAbortedURLs(); |
114 | 118 |
115 // A RenderFrameHost in the specified |frame_tree_node| started loading a new | 119 // A RenderFrameHost in the specified |frame_tree_node| started loading a new |
116 // document. This correponds to Blink's notion of the throbber starting. | 120 // document. This correponds to Blink's notion of the throbber starting. |
117 // |to_different_document| will be true unless the load is a fragment | 121 // |to_different_document| will be true unless the load is a fragment |
118 // navigation, or triggered by history.pushState/replaceState. | 122 // navigation, or triggered by history.pushState/replaceState. |
119 virtual void DidStartLoading(FrameTreeNode* frame_tree_node, | 123 virtual void DidStartLoading(FrameTreeNode* frame_tree_node, |
120 bool to_different_document) {} | 124 bool to_different_document) {} |
121 | 125 |
122 // A document stopped loading. This corresponds to Blink's notion of the | 126 // A document stopped loading. This corresponds to Blink's notion of the |
123 // throbber stopping. | 127 // throbber stopping. |
124 virtual void DidStopLoading() {} | 128 virtual void DidStopLoading() {} |
125 | 129 |
126 // The load progress was changed. | 130 // The load progress was changed. |
127 virtual void DidChangeLoadProgress() {} | 131 virtual void DidChangeLoadProgress() {} |
128 }; | 132 }; |
129 | 133 |
130 } // namspace content | 134 } // namspace content |
131 | 135 |
132 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 136 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |