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

Unified Diff: src/extensions/i18n/i18n-extension.h

Issue 18487004: Import the v8-i18n extension into v8 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
Index: src/extensions/i18n/i18n-extension.h
diff --git a/src/extensions/gc-extension.h b/src/extensions/i18n/i18n-extension.h
similarity index 79%
copy from src/extensions/gc-extension.h
copy to src/extensions/i18n/i18n-extension.h
index e412b92a4d997aad87160ddd789b85419bdf3037..050c336a67a21fd6cb32892e14215cac11971111 100644
--- a/src/extensions/gc-extension.h
+++ b/src/extensions/i18n/i18n-extension.h
@@ -1,4 +1,4 @@
-// Copyright 2010 the V8 project authors. All rights reserved.
+// Copyright 2013 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -24,24 +24,28 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// limitations under the License.
-#ifndef V8_EXTENSIONS_GC_EXTENSION_H_
-#define V8_EXTENSIONS_GC_EXTENSION_H_
+#ifndef V8_EXTENSIONS_I18N_I18N_EXTENSION_H_
+#define V8_EXTENSIONS_I18N_I18N_EXTENSION_H_
#include "v8.h"
-namespace v8 {
-namespace internal {
+namespace v8_i18n {
-class GCExtension : public v8::Extension {
+class Extension : public v8::Extension {
public:
- explicit GCExtension(const char* source) : v8::Extension("v8/gc", source) {}
+ Extension();
+
virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction(
v8::Handle<v8::String> name);
- static void GC(const v8::FunctionCallbackInfo<v8::Value>& args);
+
static void Register();
+
+ private:
+ static Extension* extension_;
};
-} } // namespace v8::internal
+} // namespace v8_i18n
-#endif // V8_EXTENSIONS_GC_EXTENSION_H_
+#endif // V8_EXTENSIONS_I18N_I18N_EXTENSION_H_

Powered by Google App Engine
This is Rietveld 408576698