[Cpplint] Re-enable style checker for download and fix some errors.
[platform/framework/web/tizen-extensions-crosswalk.git] / download / download_extension.cc
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.
4
5 #include "download/download_extension.h"
6
7 #include "download/download_instance.h"
8
9 common::Extension* CreateExtension() {
10   return new DownloadExtension;
11 }
12
13 // This will be generated from download_api.js.
14 extern const char kSource_download_api[];
15
16 DownloadExtension::DownloadExtension() {
17   const char* entry_points[] = { "tizen.DownloadRequest", NULL };
18   SetExtraJSEntryPoints(entry_points);
19   SetExtensionName("tizen.download");
20   SetJavaScriptAPI(kSource_download_api);
21 }
22
23 DownloadExtension::~DownloadExtension() {}
24
25 common::Instance* DownloadExtension::CreateInstance() {
26   return new DownloadInstance;
27 }