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

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

Issue 2423233002: Preserving extra http request headers in OpenURL navigation path [relanding]. (Closed)
Patch Set: This patchset is copied from https://crrev.com/2355023002 Created 4 years, 2 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"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 virtual base::TimeTicks GetCurrentLoadStart(); 108 virtual base::TimeTicks GetCurrentLoadStart();
109 109
110 // The RenderFrameHostImpl has received a request to open a URL with the 110 // The RenderFrameHostImpl has received a request to open a URL with the
111 // specified |disposition|. 111 // specified |disposition|.
112 virtual void RequestOpenURL( 112 virtual void RequestOpenURL(
113 RenderFrameHostImpl* render_frame_host, 113 RenderFrameHostImpl* render_frame_host,
114 const GURL& url, 114 const GURL& url,
115 bool uses_post, 115 bool uses_post,
116 const scoped_refptr<ResourceRequestBodyImpl>& body, 116 const scoped_refptr<ResourceRequestBodyImpl>& body,
117 const std::string& extra_headers,
117 SiteInstance* source_site_instance, 118 SiteInstance* source_site_instance,
118 const Referrer& referrer, 119 const Referrer& referrer,
119 WindowOpenDisposition disposition, 120 WindowOpenDisposition disposition,
120 bool should_replace_current_entry, 121 bool should_replace_current_entry,
121 bool user_gesture) {} 122 bool user_gesture) {}
122 123
123 // The RenderFrameHostImpl wants to transfer the request to a new renderer. 124 // The RenderFrameHostImpl wants to transfer the request to a new renderer.
124 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened 125 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened
125 // before the transfer. If |method| is "POST", then |post_body| needs to 126 // before the transfer. If |method| is "POST", then |post_body| needs to
126 // specify the request body, otherwise |post_body| should be null. 127 // specify the request body, otherwise |post_body| should be null.
127 virtual void RequestTransferURL( 128 virtual void RequestTransferURL(
128 RenderFrameHostImpl* render_frame_host, 129 RenderFrameHostImpl* render_frame_host,
129 const GURL& url, 130 const GURL& url,
130 SiteInstance* source_site_instance, 131 SiteInstance* source_site_instance,
131 const std::vector<GURL>& redirect_chain, 132 const std::vector<GURL>& redirect_chain,
132 const Referrer& referrer, 133 const Referrer& referrer,
133 ui::PageTransition page_transition, 134 ui::PageTransition page_transition,
134 const GlobalRequestID& transferred_global_request_id, 135 const GlobalRequestID& transferred_global_request_id,
135 bool should_replace_current_entry, 136 bool should_replace_current_entry,
136 const std::string& method, 137 const std::string& method,
137 scoped_refptr<ResourceRequestBodyImpl> post_body) {} 138 scoped_refptr<ResourceRequestBodyImpl> post_body,
139 const std::string& extra_headers) {}
138 140
139 // PlzNavigate 141 // PlzNavigate
140 // Called after receiving a BeforeUnloadACK IPC from the renderer. If 142 // Called after receiving a BeforeUnloadACK IPC from the renderer. If
141 // |frame_tree_node| has a NavigationRequest waiting for the renderer 143 // |frame_tree_node| has a NavigationRequest waiting for the renderer
142 // response, then the request is either started or canceled, depending on the 144 // response, then the request is either started or canceled, depending on the
143 // value of |proceed|. 145 // value of |proceed|.
144 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, 146 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node,
145 bool proceed) {} 147 bool proceed) {}
146 148
147 // PlzNavigate 149 // PlzNavigate
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} 195 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {}
194 196
195 protected: 197 protected:
196 friend class base::RefCounted<Navigator>; 198 friend class base::RefCounted<Navigator>;
197 virtual ~Navigator() {} 199 virtual ~Navigator() {}
198 }; 200 };
199 201
200 } // namespace content 202 } // namespace content
201 203
202 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 204 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_manager.cc ('k') | content/browser/frame_host/navigator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698