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

Unified Diff: content/browser/browser_message_filter.h

Issue 6713121: Ensure that BrowserMessageFilter isn't used to process a sync message on the UI thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « no previous file | content/browser/browser_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_message_filter.h
===================================================================
--- content/browser/browser_message_filter.h (revision 79364)
+++ content/browser/browser_message_filter.h (working copy)
@@ -48,6 +48,11 @@
// Can be called on any thread, after OnChannelConnected is called.
base::ProcessHandle peer_handle() { return peer_handle_; }
+ // Checks that the given message can be dispatched on the UI thread, depending
+ // on the platform. If not, returns false and an error ot the sender.
+ static bool MessageCanBeDispatchedOnUI(const IPC::Message& message,
+ IPC::Message::Sender* sender);
+
protected:
// Call this if a message couldn't be deserialized. This kills the renderer.
// Can be called on any thread.
« no previous file with comments | « no previous file | content/browser/browser_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698