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

Side by Side Diff: gin/per_isolate_data.h

Issue 67763002: Add gin, a lightweight bindings system for V8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Aaron's comments Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gin/initialize.cc ('k') | gin/per_isolate_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef GIN_PER_ISOLATE_DATA_H_
6 #define GIN_PER_ISOLATE_DATA_H_
7
8 #include <map>
9
10 #include "base/basictypes.h"
11 #include "gin/wrapper_info.h"
12 #include "v8/include/v8.h"
13
14 namespace gin {
15
16 class PerIsolateData {
17 public:
18 explicit PerIsolateData(v8::Isolate* isolate);
19 ~PerIsolateData();
20
21 static PerIsolateData* From(v8::Isolate* isolate);
22
23 void RegisterObjectTemplate(WrapperInfo* info,
24 v8::Local<v8::ObjectTemplate> object_template);
25
26 private:
27 typedef std::map<
28 WrapperInfo*, v8::Eternal<v8::ObjectTemplate> > ObjectTemplateMap;
29
30 v8::Isolate* isolate_;
31 ObjectTemplateMap object_templates_;
32
33 DISALLOW_COPY_AND_ASSIGN(PerIsolateData);
34 };
35
36 } // namespace gin
37
38 #endif // GIN_PER_ISOLATE_DATA_H_
OLDNEW
« no previous file with comments | « gin/initialize.cc ('k') | gin/per_isolate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698