| 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_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "content/browser/frame_host/navigator_delegate.h" | 10 #include "content/browser/frame_host/navigator_delegate.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 FrameTreeNode* frame_tree_node, | 138 FrameTreeNode* frame_tree_node, |
| 139 const CommonNavigationParams& common_params, | 139 const CommonNavigationParams& common_params, |
| 140 const BeginNavigationParams& begin_params, | 140 const BeginNavigationParams& begin_params, |
| 141 scoped_refptr<ResourceRequestBody> body); | 141 scoped_refptr<ResourceRequestBody> body); |
| 142 | 142 |
| 143 // PlzNavigate | 143 // PlzNavigate |
| 144 // Signal |render_frame_host| that a navigation is ready to commit (the | 144 // Signal |render_frame_host| that a navigation is ready to commit (the |
| 145 // response to the navigation request has been received). | 145 // response to the navigation request has been received). |
| 146 virtual void CommitNavigation(FrameTreeNode* frame_tree_node, | 146 virtual void CommitNavigation(FrameTreeNode* frame_tree_node, |
| 147 ResourceResponse* response, | 147 ResourceResponse* response, |
| 148 scoped_ptr<StreamHandle> body); | 148 scoped_ptr<StreamHandle> body, |
| 149 int navigation_provider_id); |
| 149 | 150 |
| 150 // PlzNavigate | 151 // PlzNavigate |
| 151 // Called when a NavigationRequest for |frame_tree_node| failed. An | 152 // Called when a NavigationRequest for |frame_tree_node| failed. An |
| 152 // appropriate RenderFrameHost should be selected and asked to show an error | 153 // appropriate RenderFrameHost should be selected and asked to show an error |
| 153 // page. |has_stale_copy_in_cache| is true if there is a stale copy of the | 154 // page. |has_stale_copy_in_cache| is true if there is a stale copy of the |
| 154 // unreachable page in cache. | 155 // unreachable page in cache. |
| 155 virtual void FailedNavigation(FrameTreeNode* frame_tree_node, | 156 virtual void FailedNavigation(FrameTreeNode* frame_tree_node, |
| 156 bool has_stale_copy_in_cache, | 157 bool has_stale_copy_in_cache, |
| 157 int error_code) {} | 158 int error_code) {} |
| 158 | 159 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 177 const base::TimeTicks& renderer_before_unload_end_time) {} | 178 const base::TimeTicks& renderer_before_unload_end_time) {} |
| 178 | 179 |
| 179 protected: | 180 protected: |
| 180 friend class base::RefCounted<Navigator>; | 181 friend class base::RefCounted<Navigator>; |
| 181 virtual ~Navigator() {} | 182 virtual ~Navigator() {} |
| 182 }; | 183 }; |
| 183 | 184 |
| 184 } // namespace content | 185 } // namespace content |
| 185 | 186 |
| 186 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 187 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| OLD | NEW |