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