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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index f9f7e63e771a2ea6cc498031a672e6d41ba62c63..5787a3ba5e0494b27ade9a6916d7290c7b6c49a7 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -575,6 +575,10 @@ class CONTENT_EXPORT RenderFrameHostImpl
// Returns the Mojo ImageDownloader service.
const content::mojom::ImageDownloaderPtr& GetMojoImageDownloader();
+ // Returns the interface to the Global Resource Coordinator
+ resource_coordinator::ResourceCoordinatorInterface*
+ GetFrameResourceCoordinator() override;
+
// Resets the loading state. Following this call, the RenderFrameHost will be
// in a non-loading state.
void ResetLoadingState();
@@ -1141,6 +1145,10 @@ class CONTENT_EXPORT RenderFrameHostImpl
// Holder of Mojo connection with ImageDownloader service in RenderFrame.
content::mojom::ImageDownloaderPtr mojo_image_downloader_;
+ // Holds the interface wrapper to the Global Resource Coordinator service.
+ std::unique_ptr<resource_coordinator::ResourceCoordinatorInterface>
+ frame_resource_coordinator_;
+
// Tracks a navigation happening in this frame. Note that while there can be
// two navigations in the same FrameTreeNode, there can only be one
// navigation per RenderFrameHost.

Powered by Google App Engine
This is Rietveld 408576698