| Index: components/nacl/renderer/ppb_nacl_private_impl.cc
|
| diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| index a9d909a5e322e8476a139b4205cf80f766e5e400..2e434a053ed1935ee239dfb815fab8d7777196b5 100644
|
| --- a/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| +++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| @@ -256,6 +256,16 @@ PP_FileHandle CreateTemporaryFile(PP_Instance instance) {
|
| return handle;
|
| }
|
|
|
| +int32_t GetNumberOfProcessors() {
|
| + int32_t num_processors;
|
| + IPC::Sender* sender = content::RenderThread::Get();
|
| + DCHECK(sender);
|
| + if(!sender->Send(new NaClHostMsg_NaClGetNumProcessors(&num_processors))) {
|
| + return 1;
|
| + }
|
| + return num_processors;
|
| +}
|
| +
|
| int32_t GetNexeFd(PP_Instance instance,
|
| const char* pexe_url,
|
| uint32_t abi_version,
|
| @@ -465,6 +475,7 @@ const PPB_NaCl_Private nacl_interface = {
|
| &BrokerDuplicateHandle,
|
| &GetReadonlyPnaclFD,
|
| &CreateTemporaryFile,
|
| + &GetNumberOfProcessors,
|
| &GetNexeFd,
|
| &ReportTranslationFinished,
|
| &ReportNaClError,
|
|
|