Home | History | Annotate | Download | only in util
      1 // Copyright (c) 2012 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 file declares a class that contains various method related to branding.
      6 
      7 #ifndef CHROME_INSTALLER_UTIL_CHROMIUM_BINARIES_DISTRIBUTION_H_
      8 #define CHROME_INSTALLER_UTIL_CHROMIUM_BINARIES_DISTRIBUTION_H_
      9 
     10 #include <string>
     11 
     12 #include "chrome/installer/util/browser_distribution.h"
     13 
     14 class ChromiumBinariesDistribution : public BrowserDistribution {
     15  public:
     16   virtual string16 GetAppGuid() OVERRIDE;
     17 
     18   virtual string16 GetBrowserProgIdPrefix() OVERRIDE;
     19 
     20   virtual string16 GetBrowserProgIdDesc() OVERRIDE;
     21 
     22   virtual string16 GetDisplayName() OVERRIDE;
     23 
     24   virtual string16 GetShortcutName(ShortcutType shortcut_type) OVERRIDE;
     25 
     26   virtual int GetIconIndex(ShortcutType shortcut_type) OVERRIDE;
     27 
     28   virtual string16 GetBaseAppName() OVERRIDE;
     29 
     30   virtual string16 GetBaseAppId() OVERRIDE;
     31 
     32   virtual string16 GetInstallSubDir() OVERRIDE;
     33 
     34   virtual string16 GetPublisherName() OVERRIDE;
     35 
     36   virtual string16 GetAppDescription() OVERRIDE;
     37 
     38   virtual string16 GetLongAppDescription() OVERRIDE;
     39 
     40   virtual std::string GetSafeBrowsingName() OVERRIDE;
     41 
     42   virtual string16 GetStateKey() OVERRIDE;
     43 
     44   virtual string16 GetStateMediumKey() OVERRIDE;
     45 
     46   virtual string16 GetUninstallLinkName() OVERRIDE;
     47 
     48   virtual string16 GetUninstallRegPath() OVERRIDE;
     49 
     50   virtual string16 GetVersionKey() OVERRIDE;
     51 
     52   virtual DefaultBrowserControlPolicy GetDefaultBrowserControlPolicy() OVERRIDE;
     53 
     54   virtual bool GetChromeChannel(string16* channel) OVERRIDE;
     55 
     56   virtual bool GetCommandExecuteImplClsid(
     57       string16* handler_class_uuid) OVERRIDE;
     58 
     59  protected:
     60   friend class BrowserDistribution;
     61 
     62   ChromiumBinariesDistribution();
     63 
     64   BrowserDistribution* browser_distribution_;
     65 
     66  private:
     67   DISALLOW_COPY_AND_ASSIGN(ChromiumBinariesDistribution);
     68 };
     69 
     70 #endif  // CHROME_INSTALLER_UTIL_CHROMIUM_BINARIES_DISTRIBUTION_H_
     71