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

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: Created 4 years, 10 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 scoped_refptr<ResourceRequestBody> body, 146 scoped_refptr<ResourceRequestBody> body,
147 bool browser_initiated, 147 bool browser_initiated,
148 const FrameNavigationEntry* frame_navigation_entry, 148 const FrameNavigationEntry* frame_navigation_entry,
149 const NavigationEntryImpl* navitation_entry); 149 const NavigationEntryImpl* navitation_entry);
150 150
151 // NavigationURLLoaderDelegate implementation. 151 // NavigationURLLoaderDelegate implementation.
152 void OnRequestRedirected( 152 void OnRequestRedirected(
153 const net::RedirectInfo& redirect_info, 153 const net::RedirectInfo& redirect_info,
154 const scoped_refptr<ResourceResponse>& response) override; 154 const scoped_refptr<ResourceResponse>& response) override;
155 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response, 155 void OnResponseStarted(const scoped_refptr<ResourceResponse>& response,
156 scoped_ptr<StreamHandle> body) override; 156 scoped_ptr<StreamHandle> body,
157 mojo::ScopedDataPipeConsumerHandle data_consumer_handle ) override;
157 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override; 158 void OnRequestFailed(bool has_stale_copy_in_cache, int net_error) override;
158 void OnRequestStarted(base::TimeTicks timestamp) override; 159 void OnRequestStarted(base::TimeTicks timestamp) override;
159 160
160 // Called when the NavigationThrottles have been checked by the 161 // Called when the NavigationThrottles have been checked by the
161 // NavigationHandle. 162 // NavigationHandle.
162 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result); 163 void OnStartChecksComplete(NavigationThrottle::ThrottleCheckResult result);
163 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result); 164 void OnRedirectChecksComplete(NavigationThrottle::ThrottleCheckResult result);
164 165
165 // Called when the navigation is about to be sent to the IO thread. 166 // Called when the navigation is about to be sent to the IO thread.
166 void InitializeServiceWorkerHandleIfNeeded(); 167 void InitializeServiceWorkerHandleIfNeeded();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 int bindings_; 201 int bindings_;
201 202
202 scoped_ptr<NavigationHandleImpl> navigation_handle_; 203 scoped_ptr<NavigationHandleImpl> navigation_handle_;
203 204
204 DISALLOW_COPY_AND_ASSIGN(NavigationRequest); 205 DISALLOW_COPY_AND_ASSIGN(NavigationRequest);
205 }; 206 };
206 207
207 } // namespace content 208 } // namespace content
208 209
209 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_REQUEST_H_ 210 #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') | content/browser/loader/mojo_stream_writer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698