Index: content/public/browser/render_frame_host.h |
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h |
index a0d609b03f346368df729af2b8ec175770e2d29b..b6ca3029532578853648dd24afcdf452b1ca0fe8 100644 |
--- a/content/public/browser/render_frame_host.h |
+++ b/content/public/browser/render_frame_host.h |
@@ -94,6 +94,15 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, |
// result. |
virtual void ActivateFindInPageResultForAccessibility(int request_id) = 0; |
+ // Roundtrips through the renderer and compositor pipeline to ensure that any |
+ // changes to the contents resulting from operations executed prior to this |
+ // call are visible on screen. The call completes asynchronously by running |
+ // the supplied |callback| with a value of true upon successful completion and |
+ // false otherwise (when the frame is destroyed, detached, etc..). |
+ typedef base::Callback<void(bool)> FlushVisualStateResultCallback; |
+ virtual void FlushVisualState( |
+ const FlushVisualStateResultCallback& callback) = 0; |
+ |
// Temporary until we get rid of RenderViewHost. |
virtual RenderViewHost* GetRenderViewHost() = 0; |