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

Unified Diff: include/v8.h

Issue 11087020: Add an API to let the embedder associate arbitrary data with a v8::Context. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Add an API to let the embedder associate arbitrary data with a v8::Context. Created 8 years, 2 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 | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
===================================================================
--- include/v8.h (revision 12669)
+++ include/v8.h (working copy)
@@ -3722,6 +3722,13 @@
Local<Value> GetData();
/**
+ * Associate an opaque pointer with the context. This pointer can be used by
+ * the embedder to associate additional state with the context.
+ */
+ void SetEmbedderData(void* data);
+ void* GetEmbedderData();
+
+ /**
* Control whether code generation from strings is allowed. Calling
* this method with false will disable 'eval' and the 'Function'
* constructor for code running in this context. If 'eval' or the
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698