Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Side by Side Diff: content/browser/frame_host/frame_tree_node.h

Issue 1163303003: PlzNavigate: Create the speculative renderer earlier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Method renames and comment updates. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/frame_tree_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698