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

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

Issue 1693563002: PROTOTYPE: PlzNavigate: use a Mojo data pipe to stream navigation data to the renderer. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Browser sends URLRequest id to the renderer and renderer uses intermediary buffer for data: none he… Created 4 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
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 const RequestNavigationParams& request_params, 148 const RequestNavigationParams& request_params,
149 scoped_refptr<ResourceRequestBody> body, 149 scoped_refptr<ResourceRequestBody> body,
150 bool browser_initiated, 150 bool browser_initiated,
151 const FrameNavigationEntry* frame_navigation_entry, 151 const FrameNavigationEntry* frame_navigation_entry,
152 const NavigationEntryImpl* navitation_entry); 152 const NavigationEntryImpl* navitation_entry);
153 153
154 // NavigationURLLoaderDelegate implementation. 154 // NavigationURLLoaderDelegate implementation.
155 void OnRequestRedirected( 155 void OnRequestRedirected(
156 const net::RedirectInfo& redirect_info, 156 const net::RedirectInfo& redirect_info,
157 const scoped_refptr<ResourceResponse>& response) override; 157 const scoped_refptr<ResourceResponse>& response) override;
158 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, 158 void OnResponseStarted(
159 scoped_ptr<StreamHandle> body) override; 159 const scoped_refptr<ResourceResponse>& response,
160 mojo::ScopedDataPipeConsumerHandle data_consumer_handle,
161 int request_id) override;
160 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; 162 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override;
161 void OnRequestStarted(base::TimeTicks timestamp) override; 163 void OnRequestStarted(base::TimeTicks timestamp) override;
162 164
163 // Called when the NavigationThrottles have been checked by the 165 // Called when the NavigationThrottles have been checked by the
164 // NavigationHandle. 166 // NavigationHandle.
165 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result); 167 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result);
166 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result); 168 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result);
167 169
168 // Called when the navigation is about to be sent to the IO thread. 170 // Called when the navigation is about to be sent to the IO thread.
169 void InitializeServiceWorkerHandleIfNeeded(); 171 void InitializeServiceWorkerHandleIfNeeded();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 int bindings_; 205 int bindings_;
204 206
205 scoped_ptr<NavigationHandleImpl> navigation_handle_; 207 scoped_ptr<NavigationHandleImpl> navigation_handle_;
206 208
207 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 209 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
208 }; 210 };
209 211
210 } // namespace content 212 } // namespace content
211 213
212 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 214 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698