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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2921663003: GRC: Hook up process-level CoordinationUnits in the browser process (Closed)
Patch Set: Buildfix 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/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index 8d5033e333f299c546c66977edd19e5b2a70dbe3..3f7a5295165b8a6aff8622b82c1d9cbfd0e8233c 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -185,6 +185,9 @@ class CONTENT_EXPORT RenderProcessHostImpl
void PurgeAndSuspend() override;
void Resume() override;
mojom::Renderer* GetRendererInterface() override;
+ resource_coordinator::ResourceCoordinatorInterface*
+ GetProcessResourceCoordinator() override;
+
void SetIsNeverSuitableForReuse() override;
bool MayReuseHost() override;
@@ -680,6 +683,9 @@ class CONTENT_EXPORT RenderProcessHostImpl
// if a process should be backgrounded.
int audio_stream_count_ = 0;
+ std::unique_ptr<resource_coordinator::ResourceCoordinatorInterface>
+ process_resource_coordinator_;
+
// A WeakPtrFactory which is reset every time Cleanup() runs. Used to vend
// WeakPtrs which are invalidated any time the RPHI is recycled.
std::unique_ptr<base::WeakPtrFactory<RenderProcessHostImpl>>

Powered by Google App Engine
This is Rietveld 408576698