summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/pepper_buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/plugins/pepper_buffer.cc')
-rw-r--r--webkit/glue/plugins/pepper_buffer.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/webkit/glue/plugins/pepper_buffer.cc b/webkit/glue/plugins/pepper_buffer.cc
index 1b9097d..cee10c9 100644
--- a/webkit/glue/plugins/pepper_buffer.cc
+++ b/webkit/glue/plugins/pepper_buffer.cc
@@ -8,10 +8,11 @@
#include "base/logging.h"
#include "base/scoped_ptr.h"
-#include "third_party/ppapi/c/dev/ppb_buffer_dev.h"
-#include "third_party/ppapi/c/pp_instance.h"
-#include "third_party/ppapi/c/pp_module.h"
-#include "third_party/ppapi/c/pp_resource.h"
+#include "ppapi/c/dev/ppb_buffer_dev.h"
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_module.h"
+#include "ppapi/c/pp_resource.h"
+#include "webkit/glue/plugins/pepper_common.h"
#include "webkit/glue/plugins/pepper_plugin_instance.h"
#include "webkit/glue/plugins/pepper_plugin_module.h"
@@ -31,16 +32,16 @@ PP_Resource Create(PP_Module module_id, int32_t size) {
return buffer->GetReference();
}
-bool IsBuffer(PP_Resource resource) {
- return !!Resource::GetAs<Buffer>(resource);
+PP_Bool IsBuffer(PP_Resource resource) {
+ return BoolToPPBool(!!Resource::GetAs<Buffer>(resource));
}
-bool Describe(PP_Resource resource, int32_t* size_in_bytes) {
+PP_Bool Describe(PP_Resource resource, int32_t* size_in_bytes) {
scoped_refptr<Buffer> buffer(Resource::GetAs<Buffer>(resource));
if (!buffer)
- return false;
+ return PP_FALSE;
buffer->Describe(size_in_bytes);
- return true;
+ return PP_TRUE;
}
void* Map(PP_Resource resource) {