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/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 scoped_refptr<ResourceRequestBody> body); | 136 scoped_refptr<ResourceRequestBody> body); |
137 | 137 |
138 // PlzNavigate | 138 // PlzNavigate |
139 // Signal |render_frame_host| that a navigation is ready to commit (the | 139 // Signal |render_frame_host| that a navigation is ready to commit (the |
140 // response to the navigation request has been received). | 140 // response to the navigation request has been received). |
141 virtual void CommitNavigation(FrameTreeNode* frame_tree_node, | 141 virtual void CommitNavigation(FrameTreeNode* frame_tree_node, |
142 ResourceResponse* response, | 142 ResourceResponse* response, |
143 scoped_ptr<StreamHandle> body); | 143 scoped_ptr<StreamHandle> body); |
144 | 144 |
145 // PlzNavigate | 145 // PlzNavigate |
146 // Called when a NavigationRequest for |frame_tree_node| failed. An | |
147 // appropriate RenderFrameHost should be selected and asked to show an error | |
148 // page. | |
Charlie Reis
2015/04/09 00:07:30
Please add what has_stale_copy_in_cache means. Is
clamy
2015/04/10 14:04:49
Done. This is needed by the WebURLError, which is
| |
149 virtual void FailedNavigation(FrameTreeNode* frame_tree_node, | |
150 bool has_stale_copy_in_cache, | |
151 int error_code) {} | |
152 | |
153 // PlzNavigate | |
146 // Cancel a NavigationRequest for |frame_tree_node|. Called when | 154 // Cancel a NavigationRequest for |frame_tree_node|. Called when |
147 // |frame_tree_node| is destroyed. | 155 // |frame_tree_node| is destroyed. |
148 virtual void CancelNavigation(FrameTreeNode* frame_tree_node) {} | 156 virtual void CancelNavigation(FrameTreeNode* frame_tree_node) {} |
149 | 157 |
150 // Called when the network stack started handling the navigation request | 158 // Called when the network stack started handling the navigation request |
151 // so that the |timestamp| when it happened can be recorded into an histogram. | 159 // so that the |timestamp| when it happened can be recorded into an histogram. |
152 // The |url| is used to verify we're tracking the correct navigation. | 160 // The |url| is used to verify we're tracking the correct navigation. |
153 // TODO(carlosk): once PlzNavigate is the only navigation implementation | 161 // TODO(carlosk): once PlzNavigate is the only navigation implementation |
154 // remove the URL parameter and rename this method to better suit its naming | 162 // remove the URL parameter and rename this method to better suit its naming |
155 // conventions. | 163 // conventions. |
(...skipping 12 matching lines...) Expand all Loading... | |
168 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node); | 176 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node); |
169 | 177 |
170 protected: | 178 protected: |
171 friend class base::RefCounted<Navigator>; | 179 friend class base::RefCounted<Navigator>; |
172 virtual ~Navigator() {} | 180 virtual ~Navigator() {} |
173 }; | 181 }; |
174 | 182 |
175 } // namespace content | 183 } // namespace content |
176 | 184 |
177 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 185 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |