diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-08 23:58:15 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-08 23:58:15 +0000 |
commit | 6b395fee22239c0fedd1974ea4fad5a5031fc469 (patch) | |
tree | 91e4cb28ea1500dcf6abc88dbc2d8d0e4f758b4f /gin/public/isolate_holder.h | |
parent | 193149cfeb82bf67a677cade990249e5dd7ebf23 (diff) | |
download | chromium_src-6b395fee22239c0fedd1974ea4fad5a5031fc469.zip chromium_src-6b395fee22239c0fedd1974ea4fad5a5031fc469.tar.gz chromium_src-6b395fee22239c0fedd1974ea4fad5a5031fc469.tar.bz2 |
Make net use v8 through gin
- no longer try to use the default isolate (we want to remove it from v8)
- add the option to gin to manage an isolate in non-strict mode
BUG=359977
R=eroman@chromium.org,abarth@chromium.org
Review URL: https://codereview.chromium.org/227233006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262559 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/public/isolate_holder.h')
-rw-r--r-- | gin/public/isolate_holder.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gin/public/isolate_holder.h b/gin/public/isolate_holder.h index eebafa7..f82a53a 100644 --- a/gin/public/isolate_holder.h +++ b/gin/public/isolate_holder.h @@ -26,7 +26,13 @@ class PerIsolateData; // It is not possible to mix the two. class GIN_EXPORT IsolateHolder { public: - IsolateHolder(); + // Controls whether or not V8 should only accept strict mode scripts. + enum ScriptMode { + kNonStrictMode, + kStrictMode + }; + + explicit IsolateHolder(ScriptMode mode); IsolateHolder(v8::Isolate* isolate, v8::ArrayBuffer::Allocator* allocator); ~IsolateHolder(); |