setup_main.h revision ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16
1// Copyright 2013 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// This header exists as a starting point for extracting some of the
6// logic out of setup_main.cc.
7
8#ifndef CHROME_INSTALLER_SETUP_SETUP_MAIN_H_
9#define CHROME_INSTALLER_SETUP_SETUP_MAIN_H_
10
11#include "chrome/installer/util/util_constants.h"
12
13class CommandLine;
14
15namespace installer {
16
17class InstallationState;
18class InstallerState;
19class MasterPreferences;
20
21// Helper function that performs the installation of a set of products.
22installer::InstallStatus InstallProductsHelper(
23    const installer::InstallationState& original_state,
24    const CommandLine& cmd_line,
25    const installer::MasterPreferences& prefs,
26    const installer::InstallerState& installer_state,
27    installer::ArchiveType* archive_type,
28    bool* delegated_to_existing);
29
30}  // namespace installer
31
32#endif  // CHROME_INSTALLER_SETUP_SETUP_MAIN_H_
33