OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. 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 "extensions/browser/external_extension_install_info.h" |
| 6 |
| 7 #include "extensions/common/manifest.h" |
| 8 |
| 9 namespace extensions { |
| 10 |
| 11 ExternalExtensionInstallInfo::ExternalExtensionInstallInfo( |
| 12 const std::string& extension_id, |
| 13 int creation_flags, |
| 14 bool mark_acknowledged) |
| 15 : extension_id(extension_id), |
| 16 creation_flags(creation_flags), |
| 17 mark_acknowledged(mark_acknowledged) {} |
| 18 |
| 19 ExternalExtensionInstallInfoFile::ExternalExtensionInstallInfoFile( |
| 20 const std::string& extension_id, |
| 21 scoped_ptr<base::Version> version, |
| 22 const base::FilePath& path, |
| 23 Manifest::Location crx_location, |
| 24 int creation_flags, |
| 25 bool mark_acknowledged, |
| 26 bool install_immediately) |
| 27 : ExternalExtensionInstallInfo(extension_id, |
| 28 creation_flags, |
| 29 mark_acknowledged), |
| 30 version(std::move(version)), |
| 31 path(path), |
| 32 crx_location(crx_location), |
| 33 install_immediately(install_immediately) {} |
| 34 ExternalExtensionInstallInfoFile::~ExternalExtensionInstallInfoFile() {} |
| 35 |
| 36 ExternalExtensionInstallInfoUpdateUrl::ExternalExtensionInstallInfoUpdateUrl( |
| 37 const std::string& extension_id, |
| 38 const std::string& install_parameter, |
| 39 scoped_ptr<GURL> update_url, |
| 40 Manifest::Location download_location, |
| 41 int creation_flags, |
| 42 bool mark_acknowledged) |
| 43 : ExternalExtensionInstallInfo(extension_id, |
| 44 creation_flags, |
| 45 mark_acknowledged), |
| 46 install_parameter(install_parameter), |
| 47 update_url(std::move(update_url)), |
| 48 download_location(download_location) {} |
| 49 |
| 50 ExternalExtensionInstallInfoUpdateUrl:: |
| 51 ~ExternalExtensionInstallInfoUpdateUrl() {} |
| 52 |
| 53 } // namespace extensions |
OLD | NEW |