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

Unified Diff: ppapi/shared_impl/ppb_audio_shared.h

Issue 240523002: Add test to make sure if PPB_Audio_Shared::StartThread() works. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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: ppapi/shared_impl/ppb_audio_shared.h
diff --git a/ppapi/shared_impl/ppb_audio_shared.h b/ppapi/shared_impl/ppb_audio_shared.h
index 6ba8cac2e669135d8593070dc8b5ab5f045be9b2..04b013560c6268a71f0a6a8328cb8acdcfe242c5 100644
--- a/ppapi/shared_impl/ppb_audio_shared.h
+++ b/ppapi/shared_impl/ppb_audio_shared.h
@@ -79,6 +79,12 @@ class PPAPI_SHARED_EXPORT PPB_Audio_Shared
PP_AudioSampleRate sample_rate,
int sample_frame_count);
+ // Returns whether a thread can be created on the client context.
+ // In trusted plugin, this should always return true, as it uses Chrome's
+ // thread library. In NaCl plugin, this returns whether SetThreadFunctions
+ // is invoked properly.
bbudge 2014/04/18 18:44:14 s/is/was or 'has been'
hidehiko 2014/04/18 19:01:37 Done.
+ static bool IsThreadFunctionReady();
+
#if defined(OS_NACL)
// NaCl has a special API for IRT code to create threads that can call back
// into user code.

Powered by Google App Engine
This is Rietveld 408576698