1 // Copyright (c) 2014 Intel Corporation. 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.
5 #include "download/download_extension.h"
7 #include "download/download_instance.h"
9 common::Extension* CreateExtension() {
10 return new DownloadExtension;
13 // This will be generated from download_api.js.
14 extern const char kSource_download_api[];
16 DownloadExtension::DownloadExtension() {
17 const char* entry_points[] = { "tizen.DownloadRequest", NULL };
18 SetExtraJSEntryPoints(entry_points);
19 SetExtensionName("tizen.download");
20 SetJavaScriptAPI(kSource_download_api);
23 DownloadExtension::~DownloadExtension() {}
25 common::Instance* DownloadExtension::CreateInstance() {
26 return new DownloadInstance;