Index: content/browser/frame_host/navigation_request.h |
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h |
index d8be70ba1bee21c7df45b73a99e291d60ee8f863..6834038372829526dcd952c400afce39befdbed7 100644 |
--- a/content/browser/frame_host/navigation_request.h |
+++ b/content/browser/frame_host/navigation_request.h |
@@ -7,11 +7,13 @@ |
#include "base/basictypes.h" |
#include "base/memory/ref_counted.h" |
+#include "content/browser/frame_host/navigation_entry_impl.h" |
#include "content/browser/frame_host/navigation_request_info.h" |
namespace content { |
class ResourceRequestBody; |
+// PlzNavigate |
// A UI thread object that owns a navigation request until it commits. It |
// ensures the UI thread can start a navigation request in the |
// ResourceDispatcherHost (that lives on the IO thread). |
@@ -19,11 +21,14 @@ class ResourceRequestBody; |
// the navigation following its refactoring. |
class NavigationRequest { |
public: |
- NavigationRequest(const NavigationRequestInfo& info, int64 frame_node_id); |
+ NavigationRequest(const NavigationRequestInfo& info, |
+ const NavigationEntryImpl& entry, |
+ int64 frame_node_id); |
~NavigationRequest(); |
const NavigationRequestInfo& info_for_testing() const { return info_; } |
+ const NavigationEntryImpl& entry() const { return entry_; } |
int64 frame_node_id() const { return frame_node_id_; } |
// Called on the UI thread by the RenderFrameHostManager which owns the |
@@ -31,8 +36,13 @@ class NavigationRequest { |
// manipulated on the UI thread. |
void BeginNavigation(scoped_refptr<ResourceRequestBody> body); |
+ // Change the url of entry_ to |final_url|, that the url the browser navigated |
+ // to after the chain of redirects. |
+ void UpdateEntryForCommit(const GURL& final_url); |
+ |
private: |
const NavigationRequestInfo info_; |
+ NavigationEntryImpl entry_; |
const int64 frame_node_id_; |
DISALLOW_COPY_AND_ASSIGN(NavigationRequest); |