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

Side by Side Diff: content/browser/loader/navigation_url_loader_impl_core.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_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "content/browser/loader/navigation_url_loader_impl.h" 11 #include "content/browser/loader/navigation_url_loader_impl.h"
12 #include "mojo/public/cpp/system/data_pipe.h"
12 13
13 namespace net { 14 namespace net {
14 class URLRequest; 15 class URLRequest;
15 struct RedirectInfo; 16 struct RedirectInfo;
16 } 17 }
17 18
18 namespace content { 19 namespace content {
19 20
20 class FrameTreeNode; 21 class FrameTreeNode;
21 class NavigationResourceHandler; 22 class NavigationResourceHandler;
(...skipping 26 matching lines...) Expand all
48 49
49 void set_resource_handler(NavigationResourceHandler* resource_handler) { 50 void set_resource_handler(NavigationResourceHandler* resource_handler) {
50 resource_handler_ = resource_handler; 51 resource_handler_ = resource_handler;
51 } 52 }
52 53
53 // Notifies |loader_| on the UI thread that the request was redirected. 54 // Notifies |loader_| on the UI thread that the request was redirected.
54 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, 55 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info,
55 ResourceResponse* response); 56 ResourceResponse* response);
56 57
57 // Notifies |loader_| on the UI thread that the response started. 58 // Notifies |loader_| on the UI thread that the response started.
58 void NotifyResponseStarted(ResourceResponse* response, 59 void NotifyResponseStarted(
59 scoped_ptr<StreamHandle> body); 60 ResourceResponse* response,
61 mojo::ScopedDataPipeConsumerHandle data_consumer_handle,
62 int request_id);
60 63
61 // Notifies |loader_| on the UI thread that the request failed. 64 // Notifies |loader_| on the UI thread that the request failed.
62 void NotifyRequestFailed(bool in_cache, int net_error); 65 void NotifyRequestFailed(bool in_cache, int net_error);
63 66
64 private: 67 private:
65 base::WeakPtr<NavigationURLLoaderImpl> loader_; 68 base::WeakPtr<NavigationURLLoaderImpl> loader_;
66 NavigationResourceHandler* resource_handler_; 69 NavigationResourceHandler* resource_handler_;
67 70
68 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); 71 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore);
69 }; 72 };
70 73
71 } // namespace content 74 } // namespace content
72 75
73 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 76 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
OLDNEW
« no previous file with comments | « content/browser/loader/navigation_url_loader_impl.cc ('k') | content/browser/loader/navigation_url_loader_impl_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698