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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // Returns this node's loading progress. | 155 // Returns this node's loading progress. |
156 double loading_progress() const { return loading_progress_; } | 156 double loading_progress() const { return loading_progress_; } |
157 | 157 |
158 NavigationRequest* navigation_request() { return navigation_request_.get(); } | 158 NavigationRequest* navigation_request() { return navigation_request_.get(); } |
159 | 159 |
160 // PlzNavigate | 160 // PlzNavigate |
161 // Takes ownership of |navigation_request| and makes it the current | 161 // Takes ownership of |navigation_request| and makes it the current |
162 // NavigationRequest of this frame. This corresponds to the start of a new | 162 // NavigationRequest of this frame. This corresponds to the start of a new |
163 // navigation. If there was an ongoing navigation request before calling this | 163 // navigation. If there was an ongoing navigation request before calling this |
164 // function, it is canceled. |navigation_request| should not be null. | 164 // function, it is canceled. |navigation_request| should not be null. |
165 void SetNavigationRequest(scoped_ptr<NavigationRequest> navigation_request); | 165 void CreatedNavigationRequest( |
| 166 scoped_ptr<NavigationRequest> navigation_request); |
166 | 167 |
167 // PlzNavigate | 168 // PlzNavigate |
168 // Resets the current navigation request. |is_commit| is true if the reset is | 169 // Resets the current navigation request. |is_commit| is true if the reset is |
169 // due to the commit of the navigation. | 170 // due to the commit of the navigation. |
170 void ResetNavigationRequest(bool is_commit); | 171 void ResetNavigationRequest(bool is_commit); |
171 | 172 |
172 // Returns true if this node is in a state where the loading progress is being | 173 // Returns true if this node is in a state where the loading progress is being |
173 // tracked. | 174 // tracked. |
174 bool has_started_loading() const; | 175 bool has_started_loading() const; |
175 | 176 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 | 264 |
264 // List of objects observing this FrameTreeNode. | 265 // List of objects observing this FrameTreeNode. |
265 base::ObserverList<Observer> observers_; | 266 base::ObserverList<Observer> observers_; |
266 | 267 |
267 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); | 268 DISALLOW_COPY_AND_ASSIGN(FrameTreeNode); |
268 }; | 269 }; |
269 | 270 |
270 } // namespace content | 271 } // namespace content |
271 | 272 |
272 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ | 273 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_TREE_NODE_H_ |
OLD | NEW |