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

Unified Diff: webkit/glue/plugins/pepper_file_ref.cc

Issue 3255003: Pull new PPAPI, rename non-P0 interfaces to Dev, rename DeviceContext2D to Gr... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 months 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 | « webkit/glue/plugins/pepper_file_ref.h ('k') | webkit/glue/plugins/pepper_file_system.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_file_ref.cc
===================================================================
--- webkit/glue/plugins/pepper_file_ref.cc (revision 57791)
+++ webkit/glue/plugins/pepper_file_ref.cc (working copy)
@@ -33,7 +33,7 @@
}
PP_Resource CreateFileRef(PP_Instance instance_id,
- PP_FileSystemType fs_type,
+ PP_FileSystemType_Dev fs_type,
const char* path) {
PluginInstance* instance = PluginInstance::FromPPInstance(instance_id);
if (!instance)
@@ -65,11 +65,10 @@
return !!Resource::GetAs<FileRef>(resource);
}
-PP_FileSystemType GetFileSystemType(PP_Resource file_ref_id) {
+PP_FileSystemType_Dev GetFileSystemType(PP_Resource file_ref_id) {
scoped_refptr<FileRef> file_ref(Resource::GetAs<FileRef>(file_ref_id));
if (!file_ref)
return PP_FILESYSTEMTYPE_EXTERNAL;
-
return file_ref->file_system_type();
}
@@ -77,7 +76,6 @@
scoped_refptr<FileRef> file_ref(Resource::GetAs<FileRef>(file_ref_id));
if (!file_ref)
return PP_MakeVoid();
-
return StringToPPVar(file_ref->GetName());
}
@@ -107,7 +105,7 @@
return parent_ref->GetReference();
}
-const PPB_FileRef ppb_fileref = {
+const PPB_FileRef_Dev ppb_fileref = {
&CreatePersistentFileRef,
&CreateTemporaryFileRef,
&IsFileRef,
@@ -120,7 +118,7 @@
} // namespace
FileRef::FileRef(PluginModule* module,
- PP_FileSystemType file_system_type,
+ PP_FileSystemType_Dev file_system_type,
const std::string& validated_path,
const std::string& origin)
: Resource(module),
@@ -141,7 +139,7 @@
}
// static
-const PPB_FileRef* FileRef::GetInterface() {
+const PPB_FileRef_Dev* FileRef::GetInterface() {
return &ppb_fileref;
}
« no previous file with comments | « webkit/glue/plugins/pepper_file_ref.h ('k') | webkit/glue/plugins/pepper_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698