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

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

Issue 2112923002: Fix crash when destroying a RenderWidgetHost that holds the pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: send privileged request through webcontents Created 4 years, 5 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_widget_host_delegate.h
diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
index 6777b9c999261e7fc63cbc10a9d51c45dbc9a3ff..d25fd8f5744a408cf853c328237c5c86b8b132cf 100644
--- a/content/browser/renderer_host/render_widget_host_delegate.h
+++ b/content/browser/renderer_host/render_widget_host_delegate.h
@@ -147,7 +147,8 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
// widget host.
Charlie Reis 2016/07/07 21:47:13 Can you mention what privileged means?
lfg 2016/07/11 19:11:29 Done.
virtual void RequestToLockMouse(RenderWidgetHostImpl* render_widget_host,
bool user_gesture,
- bool last_unlocked_by_target) {}
+ bool last_unlocked_by_target,
+ bool privileged) {}
// Return the rect where to display the resize corner, if any, otherwise
// an empty rect.
@@ -167,6 +168,9 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
// Notification that the widget has lost the mouse lock.
virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {}
+ // Returns true if |render_widget_host| holds the mouse lock.
+ virtual bool HasMouseLock(RenderWidgetHostImpl* render_widget_host);
+
// Called when the widget has sent a compositor proto. This is used in Btlimp
// mode with the RemoteChannel compositor.
virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host,

Powered by Google App Engine
This is Rietveld 408576698