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

Unified Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Addressed comments + changes to NavigationHandleImpl following 2364943002 Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_handle_impl.h
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h
index 18d12057910e42cb264d6d58d7e967fbfa0d6d29..e3f7991312601cbbc3198b435651edbf7935fea7 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -27,6 +27,7 @@ struct FrameHostMsg_DidCommitProvisionalLoad_Params;
namespace content {
+class NavigationUIData;
class NavigatorDelegate;
class ResourceRequestBodyImpl;
class ServiceWorkerContextWrapper;
@@ -251,6 +252,10 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
SSLStatus ssl_status() { return ssl_status_; }
+ NavigationUIData* navigation_ui_data() const {
+ return navigation_ui_data_.get();
+ }
+
private:
friend class NavigationHandleImplTest;
@@ -347,9 +352,13 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
// corresponding ServiceWorkerNetworkProvider is created in the renderer.
std::unique_ptr<ServiceWorkerNavigationHandle> service_worker_handle_;
- // Embedder data tied to this navigation.
+ // Embedder data from the IO thread tied to this navigation.
std::unique_ptr<NavigationData> navigation_data_;
+ // PlzNavigate
+ // Embedder data from the UI thread tied to this navigation.
+ std::unique_ptr<NavigationUIData> navigation_ui_data_;
+
SSLStatus ssl_status_;
DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);

Powered by Google App Engine
This is Rietveld 408576698