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

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

Issue 2954343005: Merge ResourceRequestBodyImpl and ResourceRequestBody. (Closed)
Patch Set: Remove comment Created 3 years, 5 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/navigation_handle_impl.h" 10 #include "content/browser/frame_host/navigation_handle_impl.h"
(...skipping 10 matching lines...) Expand all
21 namespace base { 21 namespace base {
22 class TimeTicks; 22 class TimeTicks;
23 } 23 }
24 24
25 namespace content { 25 namespace content {
26 26
27 class FrameNavigationEntry; 27 class FrameNavigationEntry;
28 class FrameTreeNode; 28 class FrameTreeNode;
29 class NavigationRequest; 29 class NavigationRequest;
30 class RenderFrameHostImpl; 30 class RenderFrameHostImpl;
31 class ResourceRequestBodyImpl; 31 class ResourceRequestBody;
32 struct BeginNavigationParams; 32 struct BeginNavigationParams;
33 struct CommonNavigationParams; 33 struct CommonNavigationParams;
34 34
35 // Implementations of this interface are responsible for performing navigations 35 // Implementations of this interface are responsible for performing navigations
36 // in a node of the FrameTree. Its lifetime is bound to all FrameTreeNode 36 // in a node of the FrameTree. Its lifetime is bound to all FrameTreeNode
37 // objects that are using it and will be released once all nodes that use it are 37 // objects that are using it and will be released once all nodes that use it are
38 // freed. The Navigator is bound to a single frame tree and cannot be used by 38 // freed. The Navigator is bound to a single frame tree and cannot be used by
39 // multiple instances of FrameTree. 39 // multiple instances of FrameTree.
40 // TODO(nasko): Move all navigation methods, such as didStartProvisionalLoad 40 // TODO(nasko): Move all navigation methods, such as didStartProvisionalLoad
41 // from WebContentsImpl to this interface. 41 // from WebContentsImpl to this interface.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // Navigation requests ------------------------------------------------------- 111 // Navigation requests -------------------------------------------------------
112 112
113 virtual base::TimeTicks GetCurrentLoadStart(); 113 virtual base::TimeTicks GetCurrentLoadStart();
114 114
115 // The RenderFrameHostImpl has received a request to open a URL with the 115 // The RenderFrameHostImpl has received a request to open a URL with the
116 // specified |disposition|. 116 // specified |disposition|.
117 virtual void RequestOpenURL( 117 virtual void RequestOpenURL(
118 RenderFrameHostImpl* render_frame_host, 118 RenderFrameHostImpl* render_frame_host,
119 const GURL& url, 119 const GURL& url,
120 bool uses_post, 120 bool uses_post,
121 const scoped_refptr<ResourceRequestBodyImpl>& body, 121 const scoped_refptr<ResourceRequestBody>& body,
122 const std::string& extra_headers, 122 const std::string& extra_headers,
123 const Referrer& referrer, 123 const Referrer& referrer,
124 WindowOpenDisposition disposition, 124 WindowOpenDisposition disposition,
125 bool force_new_process_for_new_contents, 125 bool force_new_process_for_new_contents,
126 bool should_replace_current_entry, 126 bool should_replace_current_entry,
127 bool user_gesture, 127 bool user_gesture,
128 blink::WebTriggeringEventInfo triggering_event_info) {} 128 blink::WebTriggeringEventInfo triggering_event_info) {}
129 129
130 // The RenderFrameHostImpl wants to transfer the request to a new renderer. 130 // The RenderFrameHostImpl wants to transfer the request to a new renderer.
131 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened 131 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened
132 // before the transfer. If |method| is "POST", then |post_body| needs to 132 // before the transfer. If |method| is "POST", then |post_body| needs to
133 // specify the request body, otherwise |post_body| should be null. 133 // specify the request body, otherwise |post_body| should be null.
134 virtual void RequestTransferURL( 134 virtual void RequestTransferURL(
135 RenderFrameHostImpl* render_frame_host, 135 RenderFrameHostImpl* render_frame_host,
136 const GURL& url, 136 const GURL& url,
137 SiteInstance* source_site_instance, 137 SiteInstance* source_site_instance,
138 const std::vector<GURL>& redirect_chain, 138 const std::vector<GURL>& redirect_chain,
139 const Referrer& referrer, 139 const Referrer& referrer,
140 ui::PageTransition page_transition, 140 ui::PageTransition page_transition,
141 const GlobalRequestID& transferred_global_request_id, 141 const GlobalRequestID& transferred_global_request_id,
142 bool should_replace_current_entry, 142 bool should_replace_current_entry,
143 const std::string& method, 143 const std::string& method,
144 scoped_refptr<ResourceRequestBodyImpl> post_body, 144 scoped_refptr<ResourceRequestBody> post_body,
145 const std::string& extra_headers) {} 145 const std::string& extra_headers) {}
146 146
147 // PlzNavigate 147 // PlzNavigate
148 // Called after receiving a BeforeUnloadACK IPC from the renderer. If 148 // Called after receiving a BeforeUnloadACK IPC from the renderer. If
149 // |frame_tree_node| has a NavigationRequest waiting for the renderer 149 // |frame_tree_node| has a NavigationRequest waiting for the renderer
150 // response, then the request is either started or canceled, depending on the 150 // response, then the request is either started or canceled, depending on the
151 // value of |proceed|. 151 // value of |proceed|.
152 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, 152 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node,
153 bool proceed, 153 bool proceed,
154 const base::TimeTicks& proceed_time) {} 154 const base::TimeTicks& proceed_time) {}
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 virtual void DiscardPendingEntryIfNeeded(int expected_pending_entry_id) {} 196 virtual void DiscardPendingEntryIfNeeded(int expected_pending_entry_id) {}
197 197
198 protected: 198 protected:
199 friend class base::RefCounted<Navigator>; 199 friend class base::RefCounted<Navigator>;
200 virtual ~Navigator() {} 200 virtual ~Navigator() {}
201 }; 201 };
202 202
203 } // namespace content 203 } // namespace content
204 204
205 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 205 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_request_info.h ('k') | content/browser/frame_host/navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698