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

Unified Diff: gin/per_isolate_data.cc

Issue 172133002: gin: Make it possible to use gin array buffers when running on top of blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
Index: gin/per_isolate_data.cc
diff --git a/gin/per_isolate_data.cc b/gin/per_isolate_data.cc
index 6c2397ba50b0a67ef1bb20a516c1fc1ab6b49f34..7de9047abe8b17b7f790e8eb8491d1b597c8f894 100644
--- a/gin/per_isolate_data.cc
+++ b/gin/per_isolate_data.cc
@@ -5,6 +5,7 @@
#include "gin/per_isolate_data.h"
#include "gin/public/gin_embedders.h"
+using v8::ArrayBuffer;
using v8::Eternal;
using v8::Isolate;
using v8::Local;
@@ -14,8 +15,9 @@ using v8::ObjectTemplate;
namespace gin {
-PerIsolateData::PerIsolateData(Isolate* isolate)
- : isolate_(isolate) {
+PerIsolateData::PerIsolateData(Isolate* isolate,
+ ArrayBuffer::Allocator* allocator)
+ : isolate_(isolate), allocator_(allocator) {
isolate_->SetData(kEmbedderNativeGin, this);
}
« gin/array_buffer.cc ('K') | « gin/per_isolate_data.h ('k') | gin/public/isolate_holder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698