--- /dev/null
+// Copyright 2014 Samsung Electronics Co, Ltd. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "contact/contact_extension.h"
+#include "contact/contact_instance.h"
+
+extern const char kSource_contact_api[];
+
+common::Extension* CreateExtension() {
+ return new ContactExtension;
+}
+
+ContactExtension::ContactExtension() {
+ SetExtensionName("tizen.contact");
+ SetJavaScriptAPI(kSource_contact_api);
+}
+
+ContactExtension::~ContactExtension() {}
+
+common::Instance* ContactExtension::CreateInstance() {
+ return new extension::contact::ContactInstance;
+}
--- /dev/null
+// Copyright 2014 Samsung Electronics Co, Ltd. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTACT_CONTACT_EXTENSION_H
+#define CONTACT_CONTACT_EXTENSION_H
+
+#include "common/extension.h"
+
+class ContactExtension : public common::Extension {
+ public:
+ ContactExtension();
+ virtual ~ContactExtension();
+
+ private:
+ virtual common::Instance* CreateInstance();
+};
+
+#endif // CONTACT_CONTACT_EXTENSION_H