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

Unified Diff: webkit/plugins/ppapi/host_var_tracker.cc

Issue 8930010: Implement in-process PPB_VarArrayBuffer_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 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 | « webkit/plugins/ppapi/host_var_tracker.h ('k') | webkit/plugins/ppapi/message_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/host_var_tracker.cc
diff --git a/webkit/plugins/ppapi/host_var_tracker.cc b/webkit/plugins/ppapi/host_var_tracker.cc
index 0508d2cbf27960834aac7f35e0a0471aaa36489d..51ba0e84453b02f6d7c53971008f863ab37c8ced 100644
--- a/webkit/plugins/ppapi/host_var_tracker.cc
+++ b/webkit/plugins/ppapi/host_var_tracker.cc
@@ -6,9 +6,11 @@
#include "base/logging.h"
#include "ppapi/c/pp_var.h"
+#include "webkit/plugins/ppapi/host_array_buffer_var.h"
#include "webkit/plugins/ppapi/npobject_var.h"
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
+using ppapi::ArrayBufferVar;
using ppapi::NPObjectVar;
namespace webkit {
@@ -20,6 +22,10 @@ HostVarTracker::HostVarTracker() {
HostVarTracker::~HostVarTracker() {
}
+ArrayBufferVar* HostVarTracker::CreateArrayBuffer(uint32 size_in_bytes) {
+ return new HostArrayBufferVar(size_in_bytes);
+}
+
void HostVarTracker::AddNPObjectVar(NPObjectVar* object_var) {
InstanceMap::iterator found_instance = instance_map_.find(
object_var->pp_instance());
« no previous file with comments | « webkit/plugins/ppapi/host_var_tracker.h ('k') | webkit/plugins/ppapi/message_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698