diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-13 19:18:52 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-13 19:18:52 +0000 |
commit | 47a961c13f61cdbd00a7020a5a8173586a8ed892 (patch) | |
tree | a89ea8f0c81f5c74cb5bcaf852e4e83ab21fbc75 /ppapi/proxy/ppb_file_ref_proxy.h | |
parent | 8367f7b3aab8365ed5e696e4720a2a416d956d0a (diff) | |
download | chromium_src-47a961c13f61cdbd00a7020a5a8173586a8ed892.zip chromium_src-47a961c13f61cdbd00a7020a5a8173586a8ed892.tar.gz chromium_src-47a961c13f61cdbd00a7020a5a8173586a8ed892.tar.bz2 |
Add support for threadsafe completion callback factory.
This also makes the default be threadsafe. The old factory wasn't threadsafe even to the extent claimed in the header which was causing hangs in plugins
BUG=136284
Review URL: https://chromiumcodereview.appspot.com/10696157
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146611 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_file_ref_proxy.h')
-rw-r--r-- | ppapi/proxy/ppb_file_ref_proxy.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ppapi/proxy/ppb_file_ref_proxy.h b/ppapi/proxy/ppb_file_ref_proxy.h index d15536e..64febfa 100644 --- a/ppapi/proxy/ppb_file_ref_proxy.h +++ b/ppapi/proxy/ppb_file_ref_proxy.h @@ -12,7 +12,7 @@ #include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_time.h" #include "ppapi/proxy/interface_proxy.h" -#include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" +#include "ppapi/proxy/proxy_completion_callback_factory.h" #include "ppapi/utility/completion_callback_factory.h" namespace ppapi { @@ -92,8 +92,7 @@ class PPB_FileRef_Proxy : public InterfaceProxy { const HostResource& host_resource, int callback_id); - pp::CompletionCallbackFactory<PPB_FileRef_Proxy, - ProxyNonThreadSafeRefCount> callback_factory_; + ProxyCompletionCallbackFactory<PPB_FileRef_Proxy> callback_factory_; DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Proxy); }; |