| OLD | NEW |
| 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 Loading... |
| 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 // response once it has started. | 1134 // response once it has started. |
| 1131 std::unique_ptr<StreamHandle> stream_handle_; | 1135 std::unique_ptr<StreamHandle> stream_handle_; |
| 1132 | 1136 |
| 1133 // Context shared for each mojom::PermissionService instance created for this | 1137 // Context shared for each mojom::PermissionService instance created for this |
| 1134 // RFH. | 1138 // RFH. |
| 1135 std::unique_ptr<PermissionServiceContext> permission_service_context_; | 1139 std::unique_ptr<PermissionServiceContext> permission_service_context_; |
| 1136 | 1140 |
| 1137 // Holder of Mojo connection with ImageDownloader service in RenderFrame. | 1141 // Holder of Mojo connection with ImageDownloader service in RenderFrame. |
| 1138 content::mojom::ImageDownloaderPtr mojo_image_downloader_; | 1142 content::mojom::ImageDownloaderPtr mojo_image_downloader_; |
| 1139 | 1143 |
| 1144 // Holds the interface wrapper to the Global Resource Coordinator service. |
| 1145 std::unique_ptr<resource_coordinator::ResourceCoordinatorInterface> |
| 1146 frame_resource_coordinator_; |
| 1147 |
| 1140 // Tracks a navigation happening in this frame. Note that while there can be | 1148 // Tracks a navigation happening in this frame. Note that while there can be |
| 1141 // two navigations in the same FrameTreeNode, there can only be one | 1149 // two navigations in the same FrameTreeNode, there can only be one |
| 1142 // navigation per RenderFrameHost. | 1150 // navigation per RenderFrameHost. |
| 1143 // PlzNavigate: before the navigation is ready to be committed, the | 1151 // PlzNavigate: before the navigation is ready to be committed, the |
| 1144 // NavigationHandle for it is owned by the NavigationRequest. | 1152 // NavigationHandle for it is owned by the NavigationRequest. |
| 1145 std::unique_ptr<NavigationHandleImpl> navigation_handle_; | 1153 std::unique_ptr<NavigationHandleImpl> navigation_handle_; |
| 1146 | 1154 |
| 1147 // The associated WebUIImpl and its type. They will be set if the current | 1155 // The associated WebUIImpl and its type. They will be set if the current |
| 1148 // document is from WebUI source. Otherwise they will be null and | 1156 // document is from WebUI source. Otherwise they will be null and |
| 1149 // WebUI::kNoWebUI, respectively. | 1157 // WebUI::kNoWebUI, respectively. |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1234 | 1242 |
| 1235 // NOTE: This must be the last member. | 1243 // NOTE: This must be the last member. |
| 1236 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1244 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1237 | 1245 |
| 1238 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1246 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1239 }; | 1247 }; |
| 1240 | 1248 |
| 1241 } // namespace content | 1249 } // namespace content |
| 1242 | 1250 |
| 1243 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1251 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |