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

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

Issue 1907443006: PlzNavigate: store POST data in the FrameNavigationEntry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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_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/browser/frame_host/navigator_delegate.h" 10 #include "content/browser/frame_host/navigator_delegate.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/common/resource_request_body.h"
12 #include "content/public/browser/navigation_controller.h" 13 #include "content/public/browser/navigation_controller.h"
13 #include "ui/base/window_open_disposition.h" 14 #include "ui/base/window_open_disposition.h"
14 15
15 class GURL; 16 class GURL;
16 struct FrameHostMsg_BeginNavigation_Params; 17 struct FrameHostMsg_BeginNavigation_Params;
17 struct FrameHostMsg_DidCommitProvisionalLoad_Params; 18 struct FrameHostMsg_DidCommitProvisionalLoad_Params;
18 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; 19 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params;
19 20
20 namespace base { 21 namespace base {
21 class TimeTicks; 22 class TimeTicks;
22 } 23 }
23 24
24 namespace content { 25 namespace content {
25 26
26 class FrameNavigationEntry; 27 class FrameNavigationEntry;
27 class FrameTreeNode; 28 class FrameTreeNode;
28 class NavigationControllerImpl; 29 class NavigationControllerImpl;
29 class NavigationEntryImpl; 30 class NavigationEntryImpl;
30 class NavigationRequest; 31 class NavigationRequest;
31 class RenderFrameHostImpl; 32 class RenderFrameHostImpl;
32 class ResourceRequestBody;
33 class StreamHandle; 33 class StreamHandle;
34 struct BeginNavigationParams; 34 struct BeginNavigationParams;
35 struct CommonNavigationParams; 35 struct CommonNavigationParams;
36 struct ResourceResponse; 36 struct ResourceResponse;
37 37
38 // Implementations of this interface are responsible for performing navigations 38 // Implementations of this interface are responsible for performing navigations
39 // in a node of the FrameTree. Its lifetime is bound to all FrameTreeNode 39 // in a node of the FrameTree. Its lifetime is bound to all FrameTreeNode
40 // objects that are using it and will be released once all nodes that use it are 40 // objects that are using it and will be released once all nodes that use it are
41 // freed. The Navigator is bound to a single frame tree and cannot be used by 41 // freed. The Navigator is bound to a single frame tree and cannot be used by
42 // multiple instances of FrameTree. 42 // multiple instances of FrameTree.
(...skipping 24 matching lines...) Expand all
67 virtual void DidFailLoadWithError( 67 virtual void DidFailLoadWithError(
68 RenderFrameHostImpl* render_frame_host, 68 RenderFrameHostImpl* render_frame_host,
69 const GURL& url, 69 const GURL& url,
70 int error_code, 70 int error_code,
71 const base::string16& error_description, 71 const base::string16& error_description,
72 bool was_ignored_by_handler) {} 72 bool was_ignored_by_handler) {}
73 73
74 // The RenderFrameHostImpl has committed a navigation. 74 // The RenderFrameHostImpl has committed a navigation.
75 virtual void DidNavigate( 75 virtual void DidNavigate(
76 RenderFrameHostImpl* render_frame_host, 76 RenderFrameHostImpl* render_frame_host,
77 const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {} 77 const FrameHostMsg_DidCommitProvisionalLoad_Params& params,
78 scoped_refptr<ResourceRequestBody> post_data) {}
78 79
79 // Called by the NavigationController to cause the Navigator to navigate 80 // Called by the NavigationController to cause the Navigator to navigate
80 // to the current pending entry. The NavigationController should be called 81 // to the current pending entry. The NavigationController should be called
81 // back with RendererDidNavigate on success or DiscardPendingEntry on failure. 82 // back with RendererDidNavigate on success or DiscardPendingEntry on failure.
82 // The callbacks can be inside of this function, or at some future time. 83 // The callbacks can be inside of this function, or at some future time.
83 // 84 //
84 // The entry has a PageID of -1 if newly created (corresponding to navigation 85 // The entry has a PageID of -1 if newly created (corresponding to navigation
85 // to a new URL). 86 // to a new URL).
86 // 87 //
87 // If this method returns false, then the navigation is discarded (equivalent 88 // If this method returns false, then the navigation is discarded (equivalent
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 const base::TimeTicks& renderer_before_unload_end_time) {} 179 const base::TimeTicks& renderer_before_unload_end_time) {}
179 180
180 protected: 181 protected:
181 friend class base::RefCounted<Navigator>; 182 friend class base::RefCounted<Navigator>;
182 virtual ~Navigator() {} 183 virtual ~Navigator() {}
183 }; 184 };
184 185
185 } // namespace content 186 } // namespace content
186 187
187 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 188 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698