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

Unified Diff: ppapi/thunk/ppb_flash_file_fileref_thunk.cc

Issue 11443016: Revert 171080 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1349/src/
Patch Set: Created 8 years 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
« no previous file with comments | « ppapi/thunk/ppb_flash_file_api.h ('k') | ppapi/thunk/ppb_flash_file_modulelocal_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_flash_file_fileref_thunk.cc
===================================================================
--- ppapi/thunk/ppb_flash_file_fileref_thunk.cc (revision 171259)
+++ ppapi/thunk/ppb_flash_file_fileref_thunk.cc (working copy)
@@ -6,7 +6,8 @@
#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_file_api.h"
+#include "ppapi/thunk/ppb_flash_api.h"
+#include "ppapi/thunk/ppb_instance_api.h"
#include "ppapi/thunk/thunk.h"
namespace ppapi {
@@ -26,20 +27,22 @@
// TODO(brettw): this function should take an instance.
// To work around this, use the PP_Instance from the resource.
PP_Instance instance = GetInstanceFromFileRef(file_ref_id);
- EnterInstanceAPI<PPB_Flash_File_API> enter(instance);
+ EnterInstance enter(instance);
if (enter.failed())
return PP_ERROR_BADARGUMENT;
- return enter.functions()->OpenFileRef(instance, file_ref_id, mode, file);
+ return enter.functions()->GetFlashAPI()->OpenFileRef(instance, file_ref_id,
+ mode, file);
}
int32_t QueryFile(PP_Resource file_ref_id, struct PP_FileInfo* info) {
// TODO(brettw): this function should take an instance.
// To work around this, use the PP_Instance from the resource.
PP_Instance instance = GetInstanceFromFileRef(file_ref_id);
- EnterInstanceAPI<PPB_Flash_File_API> enter(instance);
+ EnterInstance enter(instance);
if (enter.failed())
return PP_ERROR_BADARGUMENT;
- return enter.functions()->QueryFileRef(instance, file_ref_id, info);
+ return enter.functions()->GetFlashAPI()->QueryFileRef(instance, file_ref_id,
+ info);
}
const PPB_Flash_File_FileRef g_ppb_flash_file_fileref_thunk = {
« no previous file with comments | « ppapi/thunk/ppb_flash_file_api.h ('k') | ppapi/thunk/ppb_flash_file_modulelocal_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698