Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: ppapi/thunk/ppb_flash_file_fileref_thunk.cc

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/thunk/ppb_flash_file_fileref_thunk.cc
diff --git a/ppapi/thunk/ppb_flash_file_fileref_thunk.cc b/ppapi/thunk/ppb_flash_file_fileref_thunk.cc
index 2b380c75d91cbb18bc77f3868c868a83e5be3ddc..07d3093bc3be1f6f24fb8952a6dc91029eea9bf5 100644
--- a/ppapi/thunk/ppb_flash_file_fileref_thunk.cc
+++ b/ppapi/thunk/ppb_flash_file_fileref_thunk.cc
@@ -6,7 +6,7 @@
#include "ppapi/c/private/ppb_flash_file.h"
#include "ppapi/thunk/enter.h"
#include "ppapi/thunk/ppb_file_ref_api.h"
-#include "ppapi/thunk/ppb_flash_api.h"
+#include "ppapi/thunk/ppb_flash_file_api.h"
#include "ppapi/thunk/ppb_instance_api.h"
#include "ppapi/thunk/thunk.h"
@@ -30,8 +30,8 @@ int32_t OpenFile(PP_Resource file_ref_id, int32_t mode, PP_FileHandle* file) {
EnterInstance enter(instance);
if (enter.failed())
return PP_ERROR_BADARGUMENT;
- return enter.functions()->GetFlashAPI()->OpenFileRef(instance, file_ref_id,
- mode, file);
+ return enter.functions()->GetFlashFileAPI(instance)->OpenFileRef(
+ instance, file_ref_id, mode, file);
}
int32_t QueryFile(PP_Resource file_ref_id, struct PP_FileInfo* info) {
@@ -41,8 +41,8 @@ int32_t QueryFile(PP_Resource file_ref_id, struct PP_FileInfo* info) {
EnterInstance enter(instance);
if (enter.failed())
return PP_ERROR_BADARGUMENT;
- return enter.functions()->GetFlashAPI()->QueryFileRef(instance, file_ref_id,
- info);
+ return enter.functions()->GetFlashFileAPI(instance)->QueryFileRef(
+ instance, file_ref_id, info);
}
const PPB_Flash_File_FileRef g_ppb_flash_file_fileref_thunk = {

Powered by Google App Engine
This is Rietveld 408576698