| 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" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/public/browser/navigation_controller.h" | 12 #include "content/public/browser/navigation_controller.h" |
| 13 #include "ui/base/window_open_disposition.h" | 13 #include "ui/base/window_open_disposition.h" |
| 14 #include "mojo/public/cpp/system/data_pipe.h" |
| 14 | 15 |
| 15 class GURL; | 16 class GURL; |
| 16 struct FrameHostMsg_BeginNavigation_Params; | 17 struct FrameHostMsg_BeginNavigation_Params; |
| 17 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 18 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 18 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 19 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
| 19 | 20 |
| 20 namespace base { | 21 namespace base { |
| 21 class TimeTicks; | 22 class TimeTicks; |
| 22 } | 23 } |
| 23 | 24 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 FrameTreeNode* frame_tree_node, | 146 FrameTreeNode* frame_tree_node, |
| 146 const CommonNavigationParams& common_params, | 147 const CommonNavigationParams& common_params, |
| 147 const BeginNavigationParams& begin_params, | 148 const BeginNavigationParams& begin_params, |
| 148 scoped_refptr<ResourceRequestBody> body); | 149 scoped_refptr<ResourceRequestBody> body); |
| 149 | 150 |
| 150 // PlzNavigate | 151 // PlzNavigate |
| 151 // Signal |render_frame_host| that a navigation is ready to commit (the | 152 // Signal |render_frame_host| that a navigation is ready to commit (the |
| 152 // response to the navigation request has been received). | 153 // response to the navigation request has been received). |
| 153 virtual void CommitNavigation(FrameTreeNode* frame_tree_node, | 154 virtual void CommitNavigation(FrameTreeNode* frame_tree_node, |
| 154 ResourceResponse* response, | 155 ResourceResponse* response, |
| 156 scoped_ptr<StreamHandle> body, |
| 157 mojo::ScopedDataPipeConsumerHandle data_consumer
_handle); |
| 158 virtual void CommitNavigation(FrameTreeNode* frame_tree_node, |
| 159 ResourceResponse* response, |
| 155 scoped_ptr<StreamHandle> body); | 160 scoped_ptr<StreamHandle> body); |
| 156 | 161 |
| 157 // PlzNavigate | 162 // PlzNavigate |
| 158 // Called when a NavigationRequest for |frame_tree_node| failed. An | 163 // Called when a NavigationRequest for |frame_tree_node| failed. An |
| 159 // appropriate RenderFrameHost should be selected and asked to show an error | 164 // appropriate RenderFrameHost should be selected and asked to show an error |
| 160 // page. |has_stale_copy_in_cache| is true if there is a stale copy of the | 165 // page. |has_stale_copy_in_cache| is true if there is a stale copy of the |
| 161 // unreachable page in cache. | 166 // unreachable page in cache. |
| 162 virtual void FailedNavigation(FrameTreeNode* frame_tree_node, | 167 virtual void FailedNavigation(FrameTreeNode* frame_tree_node, |
| 163 bool has_stale_copy_in_cache, | 168 bool has_stale_copy_in_cache, |
| 164 int error_code) {} | 169 int error_code) {} |
| (...skipping 19 matching lines...) Expand all Loading... |
| 184 const base::TimeTicks& renderer_before_unload_end_time) {} | 189 const base::TimeTicks& renderer_before_unload_end_time) {} |
| 185 | 190 |
| 186 protected: | 191 protected: |
| 187 friend class base::RefCounted<Navigator>; | 192 friend class base::RefCounted<Navigator>; |
| 188 virtual ~Navigator() {} | 193 virtual ~Navigator() {} |
| 189 }; | 194 }; |
| 190 | 195 |
| 191 } // namespace content | 196 } // namespace content |
| 192 | 197 |
| 193 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 198 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
| OLD | NEW |