| Index: ppapi/cpp/file_ref.cc
|
| diff --git a/ppapi/cpp/file_ref.cc b/ppapi/cpp/file_ref.cc
|
| index fbfd49b489b3723a25e76eafca9a8331688cf1ab..ac2490c3990c5101504374f3e72d60bd94e2cbf7 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,12 @@ int32_t FileRef::Rename(const FileRef& new_file_ref,
|
| pp_resource(), new_file_ref.pp_resource(), cc.pp_completion_callback());
|
| }
|
|
|
| +int32_t FileRef::Query(const CompletionCallbackWithOutput<PP_FileInfo>& cc) {
|
| + if (!has_interface<PPB_FileRef_1_1>())
|
| + return cc.MayForce(PP_ERROR_NOINTERFACE);
|
| + return get_interface<PPB_FileRef_1_1>()->Query(
|
| + pp_resource(), cc.output(), cc.pp_completion_callback());
|
| +}
|
| +
|
| +
|
| } // namespace pp
|
|
|