X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fbrowser%2Frenderer_host%2Fpepper%2Fpepper_external_file_ref_backend.cc;h=a6b61981ac5efcb7e673c2f61a246c426ed49e0d;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=72eecd49c916f8c37ea5b7154b873fe3b9ca9cb2;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc b/src/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc index 72eecd4..a6b6198 100644 --- a/src/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc +++ b/src/content/browser/renderer_host/pepper/pepper_external_file_ref_backend.cc @@ -20,16 +20,16 @@ namespace content { PepperExternalFileRefBackend::PepperExternalFileRefBackend( ppapi::host::PpapiHost* host, int render_process_id, - const base::FilePath& path) : host_(host), - path_(path), - render_process_id_(render_process_id), - weak_factory_(this) { + const base::FilePath& path) + : host_(host), + path_(path), + render_process_id_(render_process_id), + weak_factory_(this) { task_runner_ = BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE); } -PepperExternalFileRefBackend::~PepperExternalFileRefBackend() { -} +PepperExternalFileRefBackend::~PepperExternalFileRefBackend() {} int32_t PepperExternalFileRefBackend::MakeDirectory( ppapi::host::ReplyMessageContext reply_context, @@ -88,7 +88,8 @@ int32_t PepperExternalFileRefBackend::ReadDirectoryEntries( int32_t PepperExternalFileRefBackend::GetAbsolutePath( ppapi::host::ReplyMessageContext reply_context) { - host_->SendReply(reply_context, + host_->SendReply( + reply_context, PpapiPluginMsg_FileRef_GetAbsolutePathReply(path_.AsUTF8Unsafe())); // Use PP_OK_COMPLETIONPENDING instead of PP_OK since we've already sent our @@ -105,8 +106,8 @@ base::FilePath PepperExternalFileRefBackend::GetExternalFilePath() const { } int32_t PepperExternalFileRefBackend::CanRead() const { - if (!ChildProcessSecurityPolicyImpl::GetInstance()-> - CanReadFile(render_process_id_, path_)) { + if (!ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile( + render_process_id_, path_)) { return PP_ERROR_NOACCESS; } return PP_OK; @@ -123,8 +124,8 @@ int32_t PepperExternalFileRefBackend::CanCreate() const { } int32_t PepperExternalFileRefBackend::CanReadWrite() const { - if (!ChildProcessSecurityPolicyImpl::GetInstance()-> - CanCreateReadWriteFile(render_process_id_, path_)) { + if (!ChildProcessSecurityPolicyImpl::GetInstance()->CanCreateReadWriteFile( + render_process_id_, path_)) { return PP_ERROR_NOACCESS; } return PP_OK; @@ -146,8 +147,8 @@ void PepperExternalFileRefBackend::GetMetadataComplete( PP_FileInfo pp_file_info; if (error == base::File::FILE_OK) { - ppapi::FileInfoToPepperFileInfo(file_info, PP_FILESYSTEMTYPE_EXTERNAL, - &pp_file_info); + ppapi::FileInfoToPepperFileInfo( + file_info, PP_FILESYSTEMTYPE_EXTERNAL, &pp_file_info); } else { memset(&pp_file_info, 0, sizeof(pp_file_info)); }