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

Unified Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2932453002: PlzNavigate: Release StreamHandle. (Closed)
Patch Set: Add real urls in tests ( 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
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39f8b81db1d0a4228c6ec1401370d8b36f4eff0e..db36975b359f33f3f9c83a0d6514e1a2f025edd8 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -637,6 +637,10 @@ class CONTENT_EXPORT RenderFrameHostImpl
// sending a mojo overlay factory.
const base::UnguessableToken& GetOverlayRoutingToken();
+ const StreamHandle* stream_handle_for_testing() const {
+ return stream_handle_.get();
+ }
+
protected:
friend class RenderFrameHostFactory;
@@ -956,6 +960,10 @@ class CONTENT_EXPORT RenderFrameHostImpl
// to |url|.
void SetLastCommittedSiteUrl(const GURL& url);
+ // PlzNavigate: Called when the frame has consumed the StreamHandle and it
+ // can be released.
+ void OnStreamHandleConsumed(const GURL& stream_url);
+
// For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a
// refcount that calls Shutdown when it reaches zero. This allows each
// RenderFrameHostManager to just care about RenderFrameHosts, while ensuring
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698