diff options
author | polina@google.com <polina@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-22 19:34:45 +0000 |
---|---|---|
committer | polina@google.com <polina@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-22 19:34:45 +0000 |
commit | 1ab8f1485d187dd9f26b73be8803ef8240e7daa9 (patch) | |
tree | b231ca1bf810f66501779a1ac30429e164821daf /ppapi/c | |
parent | 2e7bbf2913e4327aab57e5c1b440c13711241609 (diff) | |
download | chromium_src-1ab8f1485d187dd9f26b73be8803ef8240e7daa9.zip chromium_src-1ab8f1485d187dd9f26b73be8803ef8240e7daa9.tar.gz chromium_src-1ab8f1485d187dd9f26b73be8803ef8240e7daa9.tar.bz2 |
PPAPI: Make forceasync callback option the default.
BUG=79376
TEST=ppapi_tests + NaCl integration
Review URL: http://codereview.chromium.org/7461023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93682 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r-- | ppapi/c/pp_completion_callback.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ppapi/c/pp_completion_callback.h b/ppapi/c/pp_completion_callback.h index 37d3674..5157b9c 100644 --- a/ppapi/c/pp_completion_callback.h +++ b/ppapi/c/pp_completion_callback.h @@ -47,14 +47,12 @@ typedef void (*PP_CompletionCallback_Func)(void* user_data, int32_t result); */ typedef enum { /** - * This flag allows any non-NULL callback to be always invoked asynchronously, + * By default any non-NULL callback will always invoked asynchronously, * on success or error, even if the operation could complete synchronously * without blocking. * * The method taking such callback will always return PP_OK_COMPLETIONPENDING. * The callback will be invoked on the main thread of PPAPI execution. - * - * TODO(polina): make this the default once all the clients use flags. */ PP_COMPLETIONCALLBACK_FLAG_NONE = 0 << 0, /** @@ -125,8 +123,7 @@ PP_INLINE struct PP_CompletionCallback PP_MakeCompletionCallback( struct PP_CompletionCallback cc; cc.func = func; cc.user_data = user_data; - /* TODO(polina): switch the default to PP_COMPLETIONCALLBACK_FLAG_NONE. */ - cc.flags = PP_COMPLETIONCALLBACK_FLAG_OPTIONAL; + cc.flags = PP_COMPLETIONCALLBACK_FLAG_NONE; return cc; } @@ -218,4 +215,3 @@ PP_INLINE void PP_RunAndClearCompletionCallback( */ #endif /* PPAPI_C_PP_COMPLETION_CALLBACK_H_ */ - |