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

Unified Diff: ppapi/shared_impl/ppb_message_loop_shared.h

Issue 600553002: PPAPI: Disallow blocking callbacks while handling a blocking message (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try to improve comment Created 6 years, 3 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 | « ppapi/proxy/ppb_message_loop_proxy.cc ('k') | ppapi/tests/test_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_message_loop_shared.h
diff --git a/ppapi/shared_impl/ppb_message_loop_shared.h b/ppapi/shared_impl/ppb_message_loop_shared.h
index ed7bddb6de0e7675c4b4cb4c81ca645123a9c260..5dd25226f6631e3b16bcdb7b7df67e1398d882d2 100644
--- a/ppapi/shared_impl/ppb_message_loop_shared.h
+++ b/ppapi/shared_impl/ppb_message_loop_shared.h
@@ -50,6 +50,11 @@ class PPAPI_SHARED_EXPORT MessageLoopShared
virtual base::MessageLoopProxy* GetMessageLoopProxy() = 0;
+ // Returns whether this MessageLoop is currently handling a blocking message
+ // from JavaScript. This is used to make it illegal to use blocking callbacks
+ // while the thread is handling a blocking message.
+ virtual bool CurrentlyHandlingBlockingMessage() = 0;
+
DISALLOW_COPY_AND_ASSIGN(MessageLoopShared);
};
« no previous file with comments | « ppapi/proxy/ppb_message_loop_proxy.cc ('k') | ppapi/tests/test_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698