15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 87d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)#include "base/strings/string16.h" 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "chrome/installer/util/browser_distribution.h" 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "chrome/installer/util/google_chrome_distribution.h" 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "chrome/installer/util/l10n_string_util.h" 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "chrome/installer/util/util_constants.h" 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// GoogleChromeSxSDistribution encapsulates properties of Google Chrome Sxs 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// distribution which can co-exist with other Google Chrome distributions. 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Google Chrome Sxs distribution is installed to a different path, runs 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// alongside with normally installed Google Chrome, and is updated separately. 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// It is mainly used for developer preview and testing, and is disabled for 195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// system level install and setting as default browser. 205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)class GoogleChromeSxSDistribution : public GoogleChromeDistribution { 215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) public: 225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) virtual string16 GetBaseAppName() OVERRIDE; 235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) virtual string16 GetAppShortCutName() OVERRIDE; 245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) virtual string16 GetBaseAppId() OVERRIDE; 255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) virtual string16 GetInstallSubDir() OVERRIDE; 265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) virtual string16 GetUninstallRegPath() OVERRIDE; 275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) virtual bool CanSetAsDefault() OVERRIDE; 285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) virtual int GetIconIndex() OVERRIDE; 295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) virtual bool GetChromeChannel(string16* channel) OVERRIDE; 305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) virtual bool GetCommandExecuteImplClsid( 315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) string16* handler_class_uuid) OVERRIDE; 322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) virtual bool AppHostIsSupported() OVERRIDE; 332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) virtual bool ShouldSetExperimentLabels() OVERRIDE; 342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) virtual bool HasUserExperiments() OVERRIDE; 355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // returns the channel name for GoogleChromeSxSDistribution 365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) static string16 ChannelName(); 375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) private: 385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) friend class BrowserDistribution; 395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) // Disallow construction from non-friends. 415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GoogleChromeSxSDistribution(); 425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}; 435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ 45