| Index: ppapi/shared_impl/ppb_file_ref_shared.cc
|
| diff --git a/ppapi/shared_impl/file_ref_impl.cc b/ppapi/shared_impl/ppb_file_ref_shared.cc
|
| similarity index 67%
|
| rename from ppapi/shared_impl/file_ref_impl.cc
|
| rename to ppapi/shared_impl/ppb_file_ref_shared.cc
|
| index 274d944b1b86d05a78fbc2c474dbd8913f1c2617..6e748e12c41098093f76413f6183c2348f8211b8 100644
|
| --- a/ppapi/shared_impl/file_ref_impl.cc
|
| +++ b/ppapi/shared_impl/ppb_file_ref_shared.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "ppapi/shared_impl/file_ref_impl.h"
|
| +#include "ppapi/shared_impl/ppb_file_ref_shared.h"
|
|
|
| #include "base/logging.h"
|
| #include "ppapi/shared_impl/ppapi_globals.h"
|
| @@ -10,7 +10,8 @@
|
|
|
| namespace ppapi {
|
|
|
| -FileRefImpl::FileRefImpl(const InitAsImpl&, const PPB_FileRef_CreateInfo& info)
|
| +PPB_FileRef_Shared::PPB_FileRef_Shared(const InitAsImpl&,
|
| + const PPB_FileRef_CreateInfo& info)
|
| : Resource(info.resource.instance()),
|
| create_info_(info) {
|
| // Should not have been passed a host resource for the trusted constructor.
|
| @@ -22,23 +23,24 @@ FileRefImpl::FileRefImpl(const InitAsImpl&, const PPB_FileRef_CreateInfo& info)
|
| DCHECK(!create_info_.resource.is_null());
|
| }
|
|
|
| -FileRefImpl::FileRefImpl(const InitAsProxy&, const PPB_FileRef_CreateInfo& info)
|
| +PPB_FileRef_Shared::PPB_FileRef_Shared(const InitAsProxy&,
|
| + const PPB_FileRef_CreateInfo& info)
|
| : Resource(info.resource),
|
| create_info_(info) {
|
| }
|
|
|
| -FileRefImpl::~FileRefImpl() {
|
| +PPB_FileRef_Shared::~PPB_FileRef_Shared() {
|
| }
|
|
|
| -thunk::PPB_FileRef_API* FileRefImpl::AsPPB_FileRef_API() {
|
| +thunk::PPB_FileRef_API* PPB_FileRef_Shared::AsPPB_FileRef_API() {
|
| return this;
|
| }
|
|
|
| -PP_FileSystemType FileRefImpl::GetFileSystemType() const {
|
| +PP_FileSystemType PPB_FileRef_Shared::GetFileSystemType() const {
|
| return static_cast<PP_FileSystemType>(create_info_.file_system_type);
|
| }
|
|
|
| -PP_Var FileRefImpl::GetName() const {
|
| +PP_Var PPB_FileRef_Shared::GetName() const {
|
| if (!name_var_.get()) {
|
| name_var_ = new StringVar(
|
| PpapiGlobals::Get()->GetModuleForInstance(pp_instance()),
|
| @@ -47,7 +49,7 @@ PP_Var FileRefImpl::GetName() const {
|
| return name_var_->GetPPVar();
|
| }
|
|
|
| -PP_Var FileRefImpl::GetPath() const {
|
| +PP_Var PPB_FileRef_Shared::GetPath() const {
|
| if (create_info_.file_system_type == PP_FILESYSTEMTYPE_EXTERNAL)
|
| return PP_MakeUndefined();
|
| if (!path_var_.get()) {
|
| @@ -58,7 +60,7 @@ PP_Var FileRefImpl::GetPath() const {
|
| return path_var_->GetPPVar();
|
| }
|
|
|
| -const PPB_FileRef_CreateInfo& FileRefImpl::GetCreateInfo() const {
|
| +const PPB_FileRef_CreateInfo& PPB_FileRef_Shared::GetCreateInfo() const {
|
| return create_info_;
|
| }
|
|
|
|
|