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_install_info.h" |
| 6 |
| 7 #include "base/version.h" |
| 8 #include "url/gurl.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 ExternalInstallInfo::ExternalInstallInfo(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 ExternalInstallInfoFile::ExternalInstallInfoFile( |
| 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 : ExternalInstallInfo(extension_id, creation_flags, mark_acknowledged), |
| 28 version(std::move(version)), |
| 29 path(path), |
| 30 crx_location(crx_location), |
| 31 install_immediately(install_immediately) {} |
| 32 |
| 33 ExternalInstallInfoFile::~ExternalInstallInfoFile() {} |
| 34 |
| 35 ExternalInstallInfoUpdateUrl::ExternalInstallInfoUpdateUrl( |
| 36 const std::string& extension_id, |
| 37 const std::string& install_parameter, |
| 38 scoped_ptr<GURL> update_url, |
| 39 Manifest::Location download_location, |
| 40 int creation_flags, |
| 41 bool mark_acknowledged) |
| 42 : ExternalInstallInfo(extension_id, creation_flags, mark_acknowledged), |
| 43 install_parameter(install_parameter), |
| 44 update_url(std::move(update_url)), |
| 45 download_location(download_location) {} |
| 46 |
| 47 ExternalInstallInfoUpdateUrl::~ExternalInstallInfoUpdateUrl() {} |
| 48 |
| 49 } // namespace extensions |
OLD | NEW |