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

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

Issue 2797443005: PlzNavigate data pipe
Patch Set: cleanup 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 25 matching lines...) Expand all
36 #include "content/common/features.h" 36 #include "content/common/features.h"
37 #include "content/common/frame.mojom.h" 37 #include "content/common/frame.mojom.h"
38 #include "content/common/frame_message_enums.h" 38 #include "content/common/frame_message_enums.h"
39 #include "content/common/frame_replication_state.h" 39 #include "content/common/frame_replication_state.h"
40 #include "content/common/image_downloader/image_downloader.mojom.h" 40 #include "content/common/image_downloader/image_downloader.mojom.h"
41 #include "content/common/navigation_params.h" 41 #include "content/common/navigation_params.h"
42 #include "content/public/browser/render_frame_host.h" 42 #include "content/public/browser/render_frame_host.h"
43 #include "content/public/common/javascript_dialog_type.h" 43 #include "content/public/common/javascript_dialog_type.h"
44 #include "content/public/common/previews_state.h" 44 #include "content/public/common/previews_state.h"
45 #include "media/mojo/interfaces/interface_factory.mojom.h" 45 #include "media/mojo/interfaces/interface_factory.mojom.h"
46 #include "mojo/public/cpp/system/data_pipe.h"
46 #include "net/http/http_response_headers.h" 47 #include "net/http/http_response_headers.h"
47 #include "services/service_manager/public/cpp/interface_factory.h" 48 #include "services/service_manager/public/cpp/interface_factory.h"
48 #include "services/service_manager/public/cpp/interface_registry.h" 49 #include "services/service_manager/public/cpp/interface_registry.h"
49 #include "third_party/WebKit/public/platform/WebFocusType.h" 50 #include "third_party/WebKit/public/platform/WebFocusType.h"
50 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 51 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
51 #include "third_party/WebKit/public/web/WebTextDirection.h" 52 #include "third_party/WebKit/public/web/WebTextDirection.h"
52 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 53 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
53 #include "ui/accessibility/ax_node_data.h" 54 #include "ui/accessibility/ax_node_data.h"
54 #include "ui/base/mojo/window_open_disposition.mojom.h" 55 #include "ui/base/mojo/window_open_disposition.mojom.h"
55 #include "ui/base/page_transition_types.h" 56 #include "ui/base/page_transition_types.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 class PermissionServiceContext; 91 class PermissionServiceContext;
91 class RenderFrameHostDelegate; 92 class RenderFrameHostDelegate;
92 class RenderFrameProxyHost; 93 class RenderFrameProxyHost;
93 class RenderProcessHost; 94 class RenderProcessHost;
94 class RenderViewHostImpl; 95 class RenderViewHostImpl;
95 class RenderWidgetHostDelegate; 96 class RenderWidgetHostDelegate;
96 class RenderWidgetHostImpl; 97 class RenderWidgetHostImpl;
97 class RenderWidgetHostView; 98 class RenderWidgetHostView;
98 class RenderWidgetHostViewBase; 99 class RenderWidgetHostViewBase;
99 class ResourceRequestBody; 100 class ResourceRequestBody;
100 class StreamHandle;
101 class TimeoutMonitor; 101 class TimeoutMonitor;
102 class WebBluetoothServiceImpl; 102 class WebBluetoothServiceImpl;
103 struct ContextMenuParams; 103 struct ContextMenuParams;
104 struct FileChooserParams; 104 struct FileChooserParams;
105 struct FrameOwnerProperties; 105 struct FrameOwnerProperties;
106 struct FileChooserParams; 106 struct FileChooserParams;
107 struct ResourceResponse; 107 struct ResourceResponse;
108 108
109 namespace mojom { 109 namespace mojom {
110 class CreateNewWindowParams; 110 class CreateNewWindowParams;
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 void DidCancelPopupMenu(); 534 void DidCancelPopupMenu();
535 #else 535 #else
536 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); 536 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices);
537 void DidCancelPopupMenu(); 537 void DidCancelPopupMenu();
538 #endif 538 #endif
539 #endif 539 #endif
540 540
541 // PlzNavigate: Indicates that a navigation is ready to commit and can be 541 // PlzNavigate: Indicates that a navigation is ready to commit and can be
542 // handled by this RenderFrame. 542 // handled by this RenderFrame.
543 void CommitNavigation(ResourceResponse* response, 543 void CommitNavigation(ResourceResponse* response,
544 std::unique_ptr<StreamHandle> body, 544 mojo::ScopedDataPipeConsumerHandle handle,
545 const CommonNavigationParams& common_params, 545 const CommonNavigationParams& common_params,
546 const RequestNavigationParams& request_params, 546 const RequestNavigationParams& request_params,
547 bool is_view_source); 547 bool is_view_source);
548 548
549 // PlzNavigate 549 // PlzNavigate
550 // Indicates that a navigation failed and that this RenderFrame should display 550 // Indicates that a navigation failed and that this RenderFrame should display
551 // an error page. 551 // an error page.
552 void FailedNavigation(const CommonNavigationParams& common_params, 552 void FailedNavigation(const CommonNavigationParams& common_params,
553 const BeginNavigationParams& begin_params, 553 const BeginNavigationParams& begin_params,
554 const RequestNavigationParams& request_params, 554 const RequestNavigationParams& request_params,
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 1083
1084 // Callback when an event is received, for testing. 1084 // Callback when an event is received, for testing.
1085 base::Callback<void(RenderFrameHostImpl*, ui::AXEvent, int)> 1085 base::Callback<void(RenderFrameHostImpl*, ui::AXEvent, int)>
1086 accessibility_testing_callback_; 1086 accessibility_testing_callback_;
1087 // The most recently received accessibility tree - for testing only. 1087 // The most recently received accessibility tree - for testing only.
1088 std::unique_ptr<ui::AXTree> ax_tree_for_testing_; 1088 std::unique_ptr<ui::AXTree> ax_tree_for_testing_;
1089 // Flag to not create a BrowserAccessibilityManager, for testing. If one 1089 // Flag to not create a BrowserAccessibilityManager, for testing. If one
1090 // already exists it will still be used. 1090 // already exists it will still be used.
1091 bool no_create_browser_accessibility_manager_for_testing_; 1091 bool no_create_browser_accessibility_manager_for_testing_;
1092 1092
1093 // PlzNavigate: Owns the stream used in navigations to store the body of the
1094 // response once it has started.
1095 std::unique_ptr<StreamHandle> stream_handle_;
1096
1097 // Context shared for each mojom::PermissionService instance created for this 1093 // Context shared for each mojom::PermissionService instance created for this
1098 // RFH. 1094 // RFH.
1099 std::unique_ptr<PermissionServiceContext> permission_service_context_; 1095 std::unique_ptr<PermissionServiceContext> permission_service_context_;
1100 1096
1101 // Holder of Mojo connection with ImageDownloader service in RenderFrame. 1097 // Holder of Mojo connection with ImageDownloader service in RenderFrame.
1102 content::mojom::ImageDownloaderPtr mojo_image_downloader_; 1098 content::mojom::ImageDownloaderPtr mojo_image_downloader_;
1103 1099
1104 // Tracks a navigation happening in this frame. Note that while there can be 1100 // Tracks a navigation happening in this frame. Note that while there can be
1105 // two navigations in the same FrameTreeNode, there can only be one 1101 // two navigations in the same FrameTreeNode, there can only be one
1106 // navigation per RenderFrameHost. 1102 // navigation per RenderFrameHost.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 1171
1176 // NOTE: This must be the last member. 1172 // NOTE: This must be the last member.
1177 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1173 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1178 1174
1179 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1175 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1180 }; 1176 };
1181 1177
1182 } // namespace content 1178 } // namespace content
1183 1179
1184 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1180 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigator_impl.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698