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

Unified Diff: gin/gin.h

Issue 76353002: Introduce a Gin class instead of using global functions to control gin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates 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 side-by-side diff with in-line comments
Download patch
Index: gin/gin.h
diff --git a/gin/gin.h b/gin/gin.h
new file mode 100644
index 0000000000000000000000000000000000000000..0a5c9ac7690fe843a73ab18034fafcaef277f350
--- /dev/null
+++ b/gin/gin.h
@@ -0,0 +1,31 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef GIN_GIN_H_
+#define GIN_GIN_H_
+
+#include "base/basictypes.h"
+
+namespace v8 {
+class Isolate;
+}
+
+namespace gin {
+
+class Gin {
+ public:
+ Gin();
+ ~Gin();
+
+ v8::Isolate* isolate() { return isolate_; }
+
+ private:
+ v8::Isolate* isolate_;
+
+ DISALLOW_COPY_AND_ASSIGN(Gin);
+};
+
+} // namespace gin
+
+#endif // GIN_INITIALIZE_H_
« no previous file with comments | « gin/converter_unittest.cc ('k') | gin/gin.cc » ('j') | gin/test/file_runner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698