Chromium Code Reviews| 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 |