| Index: ppapi/cpp/file_ref.cc
|
| diff --git a/ppapi/cpp/file_ref.cc b/ppapi/cpp/file_ref.cc
|
| index fbfd49b489b3723a25e76eafca9a8331688cf1ab..615725be970f47f5a24f8e505aaa716323e82b94 100644
|
| --- a/ppapi/cpp/file_ref.cc
|
| +++ b/ppapi/cpp/file_ref.cc
|
| @@ -18,6 +18,10 @@ template <> const char* interface_name<PPB_FileRef_1_0>() {
|
| return PPB_FILEREF_INTERFACE_1_0;
|
| }
|
|
|
| +template <> const char* interface_name<PPB_FileRef_1_1>() {
|
| + return PPB_FILEREF_INTERFACE_1_1;
|
| +}
|
| +
|
| } // namespace
|
|
|
| FileRef::FileRef(PP_Resource resource) : Resource(resource) {
|
| @@ -109,4 +113,13 @@ int32_t FileRef::Rename(const FileRef& new_file_ref,
|
| pp_resource(), new_file_ref.pp_resource(), cc.pp_completion_callback());
|
| }
|
|
|
| +int32_t FileRef::Query(PP_FileInfo* info,
|
| + const CompletionCallback& cc) {
|
| + if (!has_interface<PPB_FileRef_1_1>())
|
| + return cc.MayForce(PP_ERROR_NOINTERFACE);
|
| + return get_interface<PPB_FileRef_1_1>()->Query(
|
| + pp_resource(), info, cc.pp_completion_callback());
|
| +}
|
| +
|
| +
|
| } // namespace pp
|
|
|