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

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

Issue 2932453002: PlzNavigate: Release StreamHandle. (Closed)
Patch Set: Experiment: Use a RenderFrameObserver. 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 39f8b81db1d0a4228c6ec1401370d8b36f4eff0e..19ea3c5f1b776ed465243b570ed82bea8fb04b1c 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -637,6 +637,8 @@ class CONTENT_EXPORT RenderFrameHostImpl
// sending a mojo overlay factory.
const base::UnguessableToken& GetOverlayRoutingToken();
+ const StreamHandle* stream_handle() const { return stream_handle_.get(); }
clamy 2017/06/09 14:57:42 This is only used in tests right? If so, call it s
arthursonzogni 2017/06/12 09:30:15 Right! Done. I didn't know it would be enforced at
+
protected:
friend class RenderFrameHostFactory;
@@ -956,6 +958,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') | content/renderer/render_frame_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698