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

Unified Diff: content/renderer/render_widget.h

Issue 2499623002: Make PostTask and Send failures in input routing fatal. (Closed)
Patch Set: Rebase again Created 4 years, 1 month 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 | « content/renderer/input/input_event_filter.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 7ee7dfee76c9813bab3c7c11e843500f3d4f4118..ab764a499279112644cfb918f8f57e8c175543d5 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -807,6 +807,17 @@ class CONTENT_EXPORT RenderWidget
void ScreenRectToEmulatedIfNeeded(blink::WebRect* window_rect) const;
void EmulatedToScreenRectIfNeeded(blink::WebRect* window_rect) const;
+ bool CreateWidget(int32_t opener_id,
+ blink::WebPopupType popup_type,
+ int32_t* routing_id);
+
+ // A variant of Send but is fatal if it fails. The browser may
+ // be waiting for this IPC Message and if the send fails the browser will
+ // be left in a state waiting for something that never comes. And if it
+ // never comes then it may later determine this is a hung renderer; so
+ // instead fail right away.
+ void SendOrCrash(IPC::Message* msg);
+
// Indicates whether this widget has focus.
bool has_focus_;
« no previous file with comments | « content/renderer/input/input_event_filter.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698