X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fppapi%2Fshared_impl%2Fppb_message_loop_shared.h;h=5dd25226f6631e3b16bcdb7b7df67e1398d882d2;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=ed7bddb6de0e7675c4b4cb4c81ca645123a9c260;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/ppapi/shared_impl/ppb_message_loop_shared.h b/src/ppapi/shared_impl/ppb_message_loop_shared.h index ed7bddb..5dd2522 100644 --- a/src/ppapi/shared_impl/ppb_message_loop_shared.h +++ b/src/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); };