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

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

Issue 1999943002: Moving HTTP POST body from StartNavigationParams to CommonNavigationParams. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from clamy@. Created 4 years, 7 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // Called after receiving a BeforeUnloadACK IPC from the renderer. If 135 // Called after receiving a BeforeUnloadACK IPC from the renderer. If
136 // |frame_tree_node| has a NavigationRequest waiting for the renderer 136 // |frame_tree_node| has a NavigationRequest waiting for the renderer
137 // response, then the request is either started or canceled, depending on the 137 // response, then the request is either started or canceled, depending on the
138 // value of |proceed|. 138 // value of |proceed|.
139 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, 139 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node,
140 bool proceed) {} 140 bool proceed) {}
141 141
142 // PlzNavigate 142 // PlzNavigate
143 // Used to start a new renderer-initiated navigation, following a 143 // Used to start a new renderer-initiated navigation, following a
144 // BeginNavigation IPC from the renderer. 144 // BeginNavigation IPC from the renderer.
145 virtual void OnBeginNavigation( 145 virtual void OnBeginNavigation(FrameTreeNode* frame_tree_node,
146 FrameTreeNode* frame_tree_node, 146 const CommonNavigationParams& common_params,
147 const CommonNavigationParams& common_params, 147 const BeginNavigationParams& begin_params);
148 const BeginNavigationParams& begin_params,
149 scoped_refptr<ResourceRequestBody> body);
150 148
151 // PlzNavigate 149 // PlzNavigate
152 // Called when a NavigationRequest for |frame_tree_node| failed. An 150 // Called when a NavigationRequest for |frame_tree_node| failed. An
153 // appropriate RenderFrameHost should be selected and asked to show an error 151 // appropriate RenderFrameHost should be selected and asked to show an error
154 // page. |has_stale_copy_in_cache| is true if there is a stale copy of the 152 // page. |has_stale_copy_in_cache| is true if there is a stale copy of the
155 // unreachable page in cache. 153 // unreachable page in cache.
156 virtual void FailedNavigation(FrameTreeNode* frame_tree_node, 154 virtual void FailedNavigation(FrameTreeNode* frame_tree_node,
157 bool has_stale_copy_in_cache, 155 bool has_stale_copy_in_cache,
158 int error_code) {} 156 int error_code) {}
159 157
(...skipping 18 matching lines...) Expand all
178 const base::TimeTicks& renderer_before_unload_end_time) {} 176 const base::TimeTicks& renderer_before_unload_end_time) {}
179 177
180 protected: 178 protected:
181 friend class base::RefCounted<Navigator>; 179 friend class base::RefCounted<Navigator>;
182 virtual ~Navigator() {} 180 virtual ~Navigator() {}
183 }; 181 };
184 182
185 } // namespace content 183 } // namespace content
186 184
187 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ 185 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_request_info.cc ('k') | content/browser/frame_host/navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698