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

Unified Diff: gin/per_isolate_data.cc

Issue 225413004: [gin] Add a v8::Platform implementation to allow for v8 posting tasks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 6 years, 9 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 b3f24abe00d97dcd23ca52133a5fd0d4acdc6740..99c928cdd8ea1e02b0699c2243c176e537899286 100644
--- a/gin/per_isolate_data.cc
+++ b/gin/per_isolate_data.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/logging.h"
+#include "base/message_loop/message_loop_proxy.h"
#include "gin/per_isolate_data.h"
#include "gin/public/gin_embedders.h"
@@ -18,7 +19,9 @@ namespace gin {
PerIsolateData::PerIsolateData(Isolate* isolate,
ArrayBuffer::Allocator* allocator)
- : isolate_(isolate), allocator_(allocator) {
+ : isolate_(isolate),
+ allocator_(allocator),
+ message_loop_proxy_(base::MessageLoopProxy::current()) {
isolate_->SetData(kEmbedderNativeGin, this);
}
« no previous file with comments | « gin/per_isolate_data.h ('k') | gin/public/v8_platform.h » ('j') | gin/public/v8_platform.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698