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_FRAME_TREE_NODE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
254 // NavigationRequest of this frame. This corresponds to the start of a new | 254 // NavigationRequest of this frame. This corresponds to the start of a new |
255 // navigation. If there was an ongoing navigation request before calling this | 255 // navigation. If there was an ongoing navigation request before calling this |
256 // function, it is canceled. |navigation_request| should not be null. | 256 // function, it is canceled. |navigation_request| should not be null. |
257 void CreatedNavigationRequest( | 257 void CreatedNavigationRequest( |
258 std::unique_ptr<NavigationRequest> navigation_request); | 258 std::unique_ptr<NavigationRequest> navigation_request); |
259 | 259 |
260 // PlzNavigate | 260 // PlzNavigate |
261 // Resets the current navigation request. If |keep_state| is true, any state | 261 // Resets the current navigation request. If |keep_state| is true, any state |
262 // created by the NavigationRequest (e.g. speculative RenderFrameHost, | 262 // created by the NavigationRequest (e.g. speculative RenderFrameHost, |
263 // loading state) will not be reset by the function. | 263 // loading state) will not be reset by the function. |
264 void ResetNavigationRequest(bool keep_state); | 264 // If |keep_state| is false, teh request is renderer-initiated and |
Charlie Reis
2017/03/22 23:54:41
nit: s/teh/the/
nit: ..."renderer-initiated. If"
clamy
2017/03/23 13:17:52
Done
| |
265 // |inform_renderer| is true, an IPC will be sent to the renderer process to | |
266 // inform it that the navigation it requested was cancelled. | |
267 void ResetNavigationRequest(bool keep_state, bool inform_renderer); | |
265 | 268 |
266 // Returns true if this node is in a state where the loading progress is being | 269 // Returns true if this node is in a state where the loading progress is being |
267 // tracked. | 270 // tracked. |
268 bool has_started_loading() const; | 271 bool has_started_loading() const; |
269 | 272 |
270 // Resets this node's loading progress. | 273 // Resets this node's loading progress. |
271 void reset_loading_progress(); | 274 void reset_loading_progress(); |
272 | 275 |
273 // A RenderFrameHost in this node started loading. | 276 // A RenderFrameHost in this node started loading. |
274 // |to_different_document| will be true unless the load is a fragment | 277 // |to_different_document| will be true unless the load is a fragment |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
400 // browser process activities to this node (when possible). It is unrelated | 403 // browser process activities to this node (when possible). It is unrelated |
401 // to the core logic of FrameTreeNode. | 404 // to the core logic of FrameTreeNode. |
402 FrameTreeNodeBlameContext blame_context_; | 405 FrameTreeNodeBlameContext blame_context_; |
403 | 406 |
404 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 407 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
405 }; | 408 }; |
406 | 409 |
407 } // namespace content | 410 } // namespace content |
408 | 411 |
409 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 412 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |