| Index: chrome/installer/launcher_support/chrome_launcher_support.h
|
| diff --git a/chrome/installer/launcher_support/chrome_launcher_support.h b/chrome/installer/launcher_support/chrome_launcher_support.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..50c72d33fed2d06f0cef7a82f9e8866745ab4bfa
|
| --- /dev/null
|
| +++ b/chrome/installer/launcher_support/chrome_launcher_support.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
|
| +#define CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
|
| +#pragma once
|
| +
|
| +class FilePath;
|
| +
|
| +namespace chrome_launcher_support {
|
| +
|
| +enum InstallationLevel {
|
| + USER_LEVEL_INSTALLATION,
|
| + SYSTEM_LEVEL_INSTALLATION
|
| +};
|
| +
|
| +// Returns the path to an installed chrome.exe, or an empty path. Prefers a
|
| +// system-level installation to a user-level installation. Uses Omaha client
|
| +// state to identify a Chrome installation location.
|
| +// In non-official builds, to ease development, this will first look for a
|
| +// chrome.exe in the same directory as the current executable.
|
| +FilePath GetAnyChromePath();
|
| +
|
| +// Returns the path to an installed chrome.exe at the specified level, if it can
|
| +// be found via Omaha client state.
|
| +FilePath GetChromePathForInstallationLevel(InstallationLevel level);
|
| +
|
| +} // namespace chrome_launcher_support
|
| +
|
| +#endif // CHROME_INSTALLER_LAUNCHER_SUPPORT_CHROME_LAUNCHER_SUPPORT_H_
|
|
|