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

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

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