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

Unified Diff: webkit/plugins/ppapi/ppb_buffer_impl.h

Issue 7108051: Implement out-of-process proxy for PPB_Buffer_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exclude out-of-process testing for OS_MACOSX, where apparently sandboxing dies at startup. Created 9 years, 6 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/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/ppb_buffer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_buffer_impl.h
diff --git a/webkit/plugins/ppapi/ppb_buffer_impl.h b/webkit/plugins/ppapi/ppb_buffer_impl.h
index 2a2743d49e1b13eba7998307d596996b52ef9af2..2cba90d70fe7a8edb7af7cdd296733e1187cba41 100644
--- a/webkit/plugins/ppapi/ppb_buffer_impl.h
+++ b/webkit/plugins/ppapi/ppb_buffer_impl.h
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/shared_memory.h"
#include "ppapi/thunk/ppb_buffer_api.h"
+#include "ppapi/thunk/ppb_buffer_trusted_api.h"
#include "webkit/plugins/ppapi/resource.h"
struct PPB_Buffer_Dev;
@@ -19,7 +20,8 @@ namespace ppapi {
class PluginInstance;
class PPB_Buffer_Impl : public Resource,
- public ::ppapi::thunk::PPB_Buffer_API {
+ public ::ppapi::thunk::PPB_Buffer_API,
+ public ::ppapi::thunk::PPB_BufferTrusted_API {
public:
virtual ~PPB_Buffer_Impl();
@@ -30,8 +32,9 @@ class PPB_Buffer_Impl : public Resource,
base::SharedMemory* shared_memory() const { return shared_memory_.get(); }
uint32_t size() const { return size_; }
- // ResourceObjectBase overries.
+ // ResourceObjectBase overrides.
virtual ::ppapi::thunk::PPB_Buffer_API* AsPPB_Buffer_API() OVERRIDE;
+ virtual ::ppapi::thunk::PPB_BufferTrusted_API* AsPPB_BufferTrusted_API();
// PPB_Buffer_API implementation.
virtual PP_Bool Describe(uint32_t* size_in_bytes) OVERRIDE;
@@ -39,6 +42,9 @@ class PPB_Buffer_Impl : public Resource,
virtual void* Map() OVERRIDE;
virtual void Unmap() OVERRIDE;
+ // PPB_BufferTrusted_API implementation.
+ virtual int32_t GetSharedMemory(int* handle) OVERRIDE;
+
private:
explicit PPB_Buffer_Impl(PluginInstance* instance);
bool Init(uint32_t size);
@@ -49,7 +55,7 @@ class PPB_Buffer_Impl : public Resource,
DISALLOW_COPY_AND_ASSIGN(PPB_Buffer_Impl);
};
-// Ensures that the given buffer is mapped, and retursn it to its previous
+// Ensures that the given buffer is mapped, and returns it to its previous
// mapped state in the destructor.
class BufferAutoMapper {
public:
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/ppb_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698