OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 // Contains functions for determining the installer's InstallDetails at runtime. |
| 6 // See chrome/install_static/install_details.h for more information. |
| 7 |
| 8 #ifndef CHROME_INSTALLER_SETUP_SETUP_INSTALL_DETAILS_H_ |
| 9 #define CHROME_INSTALLER_SETUP_SETUP_INSTALL_DETAILS_H_ |
| 10 |
| 11 #include <memory> |
| 12 |
| 13 namespace base { |
| 14 class CommandLine; |
| 15 } |
| 16 namespace install_static { |
| 17 class PrimaryInstallDetails; |
| 18 } |
| 19 namespace installer { |
| 20 class MasterPreferences; |
| 21 } |
| 22 |
| 23 // Creates a PrimaryInstallDetails instance for the installer and makes it the |
| 24 // global InstallDetails for the process. |
| 25 void InitializeInstallDetails( |
| 26 const base::CommandLine& command_line, |
| 27 const installer::MasterPreferences& master_preferences); |
| 28 |
| 29 // Returns a PrimaryInstallDetails instance for the installer. |
| 30 std::unique_ptr<install_static::PrimaryInstallDetails> MakeInstallDetails( |
| 31 const base::CommandLine& command_line, |
| 32 const installer::MasterPreferences& master_preferences); |
| 33 |
| 34 #endif // CHROME_INSTALLER_SETUP_SETUP_INSTALL_DETAILS_H_ |
OLD | NEW |