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

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

Issue 2355023002: Preserving Content-Type header from http request in OpenURL path. (Closed)
Patch Set: Simplified AreExtraHeadersCompatibleWithPrerenderContents as suggested by mmenke@. 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 virtual base::TimeTicks GetCurrentLoadStart(); 111 virtual base::TimeTicks GetCurrentLoadStart();
112 112
113 // The RenderFrameHostImpl has received a request to open a URL with the 113 // The RenderFrameHostImpl has received a request to open a URL with the
114 // specified |disposition|. 114 // specified |disposition|.
115 virtual void RequestOpenURL( 115 virtual void RequestOpenURL(
116 RenderFrameHostImpl* render_frame_host, 116 RenderFrameHostImpl* render_frame_host,
117 const GURL& url, 117 const GURL& url,
118 bool uses_post, 118 bool uses_post,
119 const scoped_refptr<ResourceRequestBodyImpl>& body, 119 const scoped_refptr<ResourceRequestBodyImpl>& body,
120 const std::string& extra_headers,
120 SiteInstance* source_site_instance, 121 SiteInstance* source_site_instance,
121 const Referrer& referrer, 122 const Referrer& referrer,
122 WindowOpenDisposition disposition, 123 WindowOpenDisposition disposition,
123 bool should_replace_current_entry, 124 bool should_replace_current_entry,
124 bool user_gesture) {} 125 bool user_gesture) {}
125 126
126 // The RenderFrameHostImpl wants to transfer the request to a new renderer. 127 // The RenderFrameHostImpl wants to transfer the request to a new renderer.
127 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened 128 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened
128 // before the transfer. If |method| is "POST", then |post_body| needs to 129 // before the transfer. If |method| is "POST", then |post_body| needs to
129 // specify the request body, otherwise |post_body| should be null. 130 // specify the request body, otherwise |post_body| should be null.
130 virtual void RequestTransferURL( 131 virtual void RequestTransferURL(
131 RenderFrameHostImpl* render_frame_host, 132 RenderFrameHostImpl* render_frame_host,
132 const GURL& url, 133 const GURL& url,
133 SiteInstance* source_site_instance, 134 SiteInstance* source_site_instance,
134 const std::vector<GURL>& redirect_chain, 135 const std::vector<GURL>& redirect_chain,
135 const Referrer& referrer, 136 const Referrer& referrer,
136 ui::PageTransition page_transition, 137 ui::PageTransition page_transition,
137 const GlobalRequestID& transferred_global_request_id, 138 const GlobalRequestID& transferred_global_request_id,
138 bool should_replace_current_entry, 139 bool should_replace_current_entry,
139 const std::string& method, 140 const std::string& method,
140 scoped_refptr<ResourceRequestBodyImpl> post_body) {} 141 scoped_refptr<ResourceRequestBodyImpl> post_body,
142 const std::string& extra_headers) {}
141 143
142 // PlzNavigate 144 // PlzNavigate
143 // Called after receiving a BeforeUnloadACK IPC from the renderer. If 145 // Called after receiving a BeforeUnloadACK IPC from the renderer. If
144 // |frame_tree_node| has a NavigationRequest waiting for the renderer 146 // |frame_tree_node| has a NavigationRequest waiting for the renderer
145 // response, then the request is either started or canceled, depending on the 147 // response, then the request is either started or canceled, depending on the
146 // value of |proceed|. 148 // value of |proceed|.
147 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, 149 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node,
148 bool proceed) {} 150 bool proceed) {}
149 151
150 // PlzNavigate 152 // PlzNavigate
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {} 198 virtual void DiscardPendingEntryIfNeeded(NavigationHandleImpl* handle) {}
197 199
198 protected: 200 protected:
199 friend class base::RefCounted<Navigator>; 201 friend class base::RefCounted<Navigator>;
200 virtual ~Navigator() {} 202 virtual ~Navigator() {}
201 }; 203 };
202 204
203 } // namespace content 205 } // namespace content
204 206
205 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 207 #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