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

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: Rebasing... Created 4 years, 3 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 virtual base::TimeTicks GetCurrentLoadStart(); 107 virtual base::TimeTicks GetCurrentLoadStart();
108 108
109 // The RenderFrameHostImpl has received a request to open a URL with the 109 // The RenderFrameHostImpl has received a request to open a URL with the
110 // specified |disposition|. 110 // specified |disposition|.
111 virtual void RequestOpenURL( 111 virtual void RequestOpenURL(
112 RenderFrameHostImpl* render_frame_host, 112 RenderFrameHostImpl* render_frame_host,
113 const GURL& url, 113 const GURL& url,
114 bool uses_post, 114 bool uses_post,
115 const scoped_refptr<ResourceRequestBodyImpl>& body, 115 const scoped_refptr<ResourceRequestBodyImpl>& body,
116 const std::string& extra_headers,
116 SiteInstance* source_site_instance, 117 SiteInstance* source_site_instance,
117 const Referrer& referrer, 118 const Referrer& referrer,
118 WindowOpenDisposition disposition, 119 WindowOpenDisposition disposition,
119 bool should_replace_current_entry, 120 bool should_replace_current_entry,
120 bool user_gesture) {} 121 bool user_gesture) {}
121 122
122 // The RenderFrameHostImpl wants to transfer the request to a new renderer. 123 // The RenderFrameHostImpl wants to transfer the request to a new renderer.
123 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened 124 // |redirect_chain| contains any redirect URLs (excluding |url|) that happened
124 // before the transfer. If |method| is "POST", then |post_body| needs to 125 // before the transfer. If |method| is "POST", then |post_body| needs to
125 // specify the request body, otherwise |post_body| should be null. 126 // specify the request body, otherwise |post_body| should be null.
126 virtual void RequestTransferURL( 127 virtual void RequestTransferURL(
127 RenderFrameHostImpl* render_frame_host, 128 RenderFrameHostImpl* render_frame_host,
128 const GURL& url, 129 const GURL& url,
129 SiteInstance* source_site_instance, 130 SiteInstance* source_site_instance,
130 const std::vector<GURL>& redirect_chain, 131 const std::vector<GURL>& redirect_chain,
131 const Referrer& referrer, 132 const Referrer& referrer,
132 ui::PageTransition page_transition, 133 ui::PageTransition page_transition,
133 const GlobalRequestID& transferred_global_request_id, 134 const GlobalRequestID& transferred_global_request_id,
134 bool should_replace_current_entry, 135 bool should_replace_current_entry,
135 const std::string& method, 136 const std::string& method,
136 scoped_refptr<ResourceRequestBodyImpl> post_body) {} 137 scoped_refptr<ResourceRequestBodyImpl> post_body,
138 const std::string& extra_headers) {}
137 139
138 // PlzNavigate 140 // PlzNavigate
139 // Called after receiving a BeforeUnloadACK IPC from the renderer. If 141 // Called after receiving a BeforeUnloadACK IPC from the renderer. If
140 // |frame_tree_node| has a NavigationRequest waiting for the renderer 142 // |frame_tree_node| has a NavigationRequest waiting for the renderer
141 // response, then the request is either started or canceled, depending on the 143 // response, then the request is either started or canceled, depending on the
142 // value of |proceed|. 144 // value of |proceed|.
143 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, 145 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node,
144 bool proceed) {} 146 bool proceed) {}
145 147
146 // PlzNavigate 148 // PlzNavigate
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 const base::TimeTicks& renderer_before_unload_end_time) {} 182 const base::TimeTicks& renderer_before_unload_end_time) {}
181 183
182 protected: 184 protected:
183 friend class base::RefCounted<Navigator>; 185 friend class base::RefCounted<Navigator>;
184 virtual ~Navigator() {} 186 virtual ~Navigator() {}
185 }; 187 };
186 188
187 } // namespace content 189 } // namespace content
188 190
189 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 191 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698