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

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

Issue 2813243002: network service: pass PlzNavigate resulting data via mojo data pipe (Closed)
Patch Set: ahem Created 3 years, 8 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
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NAVIGATION_REQUEST_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "content/browser/frame_host/navigation_entry_impl.h" 13 #include "content/browser/frame_host/navigation_entry_impl.h"
14 #include "content/browser/loader/navigation_url_loader_delegate.h" 14 #include "content/browser/loader/navigation_url_loader_delegate.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/common/frame_message_enums.h" 16 #include "content/common/frame_message_enums.h"
17 #include "content/common/navigation_params.h" 17 #include "content/common/navigation_params.h"
18 #include "content/public/browser/navigation_throttle.h" 18 #include "content/public/browser/navigation_throttle.h"
19 #include "content/public/common/previews_state.h" 19 #include "content/public/common/previews_state.h"
20 #include "mojo/public/cpp/system/data_pipe.h"
20 21
21 namespace content { 22 namespace content {
22 23
23 class FrameNavigationEntry; 24 class FrameNavigationEntry;
24 class FrameTreeNode; 25 class FrameTreeNode;
25 class NavigationControllerImpl; 26 class NavigationControllerImpl;
26 class NavigationHandleImpl; 27 class NavigationHandleImpl;
27 class NavigationURLLoader; 28 class NavigationURLLoader;
28 class NavigationData; 29 class NavigationData;
29 class ResourceRequestBody; 30 class ResourceRequestBody;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 bool may_transfer, 176 bool may_transfer,
176 const FrameNavigationEntry* frame_navigation_entry, 177 const FrameNavigationEntry* frame_navigation_entry,
177 const NavigationEntryImpl* navitation_entry); 178 const NavigationEntryImpl* navitation_entry);
178 179
179 // NavigationURLLoaderDelegate implementation. 180 // NavigationURLLoaderDelegate implementation.
180 void OnRequestRedirected( 181 void OnRequestRedirected(
181 const net::RedirectInfo& redirect_info, 182 const net::RedirectInfo& redirect_info,
182 const scoped_refptr<ResourceResponse>& response) override; 183 const scoped_refptr<ResourceResponse>& response) override;
183 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, 184 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response,
184 std::unique_ptr<StreamHandle> body, 185 std::unique_ptr<StreamHandle> body,
186 mojo::ScopedDataPipeConsumerHandle consumer_handle,
185 const SSLStatus& ssl_status, 187 const SSLStatus& ssl_status,
186 std::unique_ptr<NavigationData> navigation_data, 188 std::unique_ptr<NavigationData> navigation_data,
187 const GlobalRequestID& request_id, 189 const GlobalRequestID& request_id,
188 bool is_download, 190 bool is_download,
189 bool is_stream) override; 191 bool is_stream) override;
190 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; 192 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override;
191 void OnRequestStarted(base::TimeTicks timestamp) override; 193 void OnRequestStarted(base::TimeTicks timestamp) override;
192 194
193 // Called when the NavigationThrottles have been checked by the 195 // Called when the NavigationThrottles have been checked by the
194 // NavigationHandle. 196 // NavigationHandle.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // True for browser-initiated navigations and renderer-inititated navigations 243 // True for browser-initiated navigations and renderer-inititated navigations
242 // started via the OpenURL path. 244 // started via the OpenURL path.
243 // Note: the RenderFrameHostManager may still decide to have the navigation 245 // Note: the RenderFrameHostManager may still decide to have the navigation
244 // commit in a different renderer process if it detects that a renderer 246 // commit in a different renderer process if it detects that a renderer
245 // transfer is needed. This is the case in particular when --site-per-process 247 // transfer is needed. This is the case in particular when --site-per-process
246 // is enabled. 248 // is enabled.
247 bool may_transfer_; 249 bool may_transfer_;
248 250
249 std::unique_ptr<NavigationHandleImpl> navigation_handle_; 251 std::unique_ptr<NavigationHandleImpl> navigation_handle_;
250 252
251 // Holds the ResourceResponse and the StreamHandle for the navigation while 253 // Holds the ResourceResponse and the StreamHandle (or
252 // the WillProcessResponse checks are performed by the NavigationHandle. 254 // DataPipeConsumerHandle) for the navigation while the WillProcessResponse
255 // checks are performed by the NavigationHandle.
253 scoped_refptr<ResourceResponse> response_; 256 scoped_refptr<ResourceResponse> response_;
254 std::unique_ptr<StreamHandle> body_; 257 std::unique_ptr<StreamHandle> body_;
258 mojo::ScopedDataPipeConsumerHandle handle_;
255 259
256 base::Closure on_start_checks_complete_closure_; 260 base::Closure on_start_checks_complete_closure_;
257 261
258 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 262 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
259 }; 263 };
260 264
261 } // namespace content 265 } // namespace content
262 266
263 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 267 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698