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

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

Issue 2913253002: GRC: Hook up the frame-level CoordinationUnit (Closed)
Patch Set: Review fixes and rebase Created 3 years, 6 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 568
569 // Destroys the pending WebUI and resets related data. 569 // Destroys the pending WebUI and resets related data.
570 void ClearPendingWebUI(); 570 void ClearPendingWebUI();
571 571
572 // Destroys all WebUI instances and resets related data. 572 // Destroys all WebUI instances and resets related data.
573 void ClearAllWebUI(); 573 void ClearAllWebUI();
574 574
575 // Returns the Mojo ImageDownloader service. 575 // Returns the Mojo ImageDownloader service.
576 const content::mojom::ImageDownloaderPtr& GetMojoImageDownloader(); 576 const content::mojom::ImageDownloaderPtr& GetMojoImageDownloader();
577 577
578 // Returns the interface to the Global Resource Coordinator
579 resource_coordinator::ResourceCoordinatorInterface*
580 GetFrameResourceCoordinator() override;
581
578 // Resets the loading state. Following this call, the RenderFrameHost will be 582 // Resets the loading state. Following this call, the RenderFrameHost will be
579 // in a non-loading state. 583 // in a non-loading state.
580 void ResetLoadingState(); 584 void ResetLoadingState();
581 585
582 // Returns the feature policy which should be enforced on this RenderFrame. 586 // Returns the feature policy which should be enforced on this RenderFrame.
583 FeaturePolicy* feature_policy() { return feature_policy_.get(); } 587 FeaturePolicy* feature_policy() { return feature_policy_.get(); }
584 588
585 // Clears any existing policy and constructs a new policy for this frame, 589 // Clears any existing policy and constructs a new policy for this frame,
586 // based on its parent frame. 590 // based on its parent frame.
587 void ResetFeaturePolicy(); 591 void ResetFeaturePolicy();
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 // response once it has started. 1138 // response once it has started.
1135 std::unique_ptr<StreamHandle> stream_handle_; 1139 std::unique_ptr<StreamHandle> stream_handle_;
1136 1140
1137 // Context shared for each mojom::PermissionService instance created for this 1141 // Context shared for each mojom::PermissionService instance created for this
1138 // RFH. 1142 // RFH.
1139 std::unique_ptr<PermissionServiceContext> permission_service_context_; 1143 std::unique_ptr<PermissionServiceContext> permission_service_context_;
1140 1144
1141 // Holder of Mojo connection with ImageDownloader service in RenderFrame. 1145 // Holder of Mojo connection with ImageDownloader service in RenderFrame.
1142 content::mojom::ImageDownloaderPtr mojo_image_downloader_; 1146 content::mojom::ImageDownloaderPtr mojo_image_downloader_;
1143 1147
1148 // Holds the interface wrapper to the Global Resource Coordinator service.
1149 std::unique_ptr<resource_coordinator::ResourceCoordinatorInterface>
1150 frame_resource_coordinator_;
1151
1144 // Tracks a navigation happening in this frame. Note that while there can be 1152 // Tracks a navigation happening in this frame. Note that while there can be
1145 // two navigations in the same FrameTreeNode, there can only be one 1153 // two navigations in the same FrameTreeNode, there can only be one
1146 // navigation per RenderFrameHost. 1154 // navigation per RenderFrameHost.
1147 // PlzNavigate: before the navigation is ready to be committed, the 1155 // PlzNavigate: before the navigation is ready to be committed, the
1148 // NavigationHandle for it is owned by the NavigationRequest. 1156 // NavigationHandle for it is owned by the NavigationRequest.
1149 std::unique_ptr<NavigationHandleImpl> navigation_handle_; 1157 std::unique_ptr<NavigationHandleImpl> navigation_handle_;
1150 1158
1151 // The associated WebUIImpl and its type. They will be set if the current 1159 // The associated WebUIImpl and its type. They will be set if the current
1152 // document is from WebUI source. Otherwise they will be null and 1160 // document is from WebUI source. Otherwise they will be null and
1153 // WebUI::kNoWebUI, respectively. 1161 // WebUI::kNoWebUI, respectively.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 1248
1241 // NOTE: This must be the last member. 1249 // NOTE: This must be the last member.
1242 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1250 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1243 1251
1244 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1252 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1245 }; 1253 };
1246 1254
1247 } // namespace content 1255 } // namespace content
1248 1256
1249 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1257 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698