Index: gin/per_isolate_data.h |
diff --git a/gin/per_isolate_data.h b/gin/per_isolate_data.h |
index fbdbca7e0e429af4a17c18e95c12530bec2b0356..bffe5fb2c6f6e6c4a420171c6a5d8b74b676429e 100644 |
--- a/gin/per_isolate_data.h |
+++ b/gin/per_isolate_data.h |
@@ -8,10 +8,15 @@ |
#include <map> |
#include "base/basictypes.h" |
+#include "base/memory/ref_counted.h" |
#include "gin/gin_export.h" |
#include "gin/public/wrapper_info.h" |
#include "v8/include/v8.h" |
+namespace base { |
+class MessageLoopProxy; |
+} |
+ |
namespace gin { |
class IndexedPropertyInterceptor; |
@@ -60,6 +65,9 @@ class GIN_EXPORT PerIsolateData { |
v8::Isolate* isolate() { return isolate_; } |
v8::ArrayBuffer::Allocator* allocator() { return allocator_; } |
+ base::MessageLoopProxy* message_loop_proxy() { |
+ return message_loop_proxy_.get(); |
+ } |
private: |
typedef std::map< |
@@ -79,6 +87,7 @@ class GIN_EXPORT PerIsolateData { |
FunctionTemplateMap function_templates_; |
IndexedPropertyInterceptorMap indexed_interceptors_; |
NamedPropertyInterceptorMap named_interceptors_; |
+ scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; |
DISALLOW_COPY_AND_ASSIGN(PerIsolateData); |
}; |