Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Side by Side Diff: chrome/installer/util/browser_distribution.h

Issue 2764963002: Move ProgID methods from BrowserDistribution into install_static. (Closed)
Patch Set: huangs comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome/installer/util/browser_distribution.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file declares a class that contains various method related to branding. 5 // This file declares a class that contains various method related to branding.
6 6
7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Returns the executable filename (not path) that contains the product icon. 74 // Returns the executable filename (not path) that contains the product icon.
75 virtual base::string16 GetIconFilename(); 75 virtual base::string16 GetIconFilename();
76 76
77 // Returns the localized name of the subfolder in the Start Menu identified by 77 // Returns the localized name of the subfolder in the Start Menu identified by
78 // |subfolder_type| that this distribution should create shortcuts in. For 78 // |subfolder_type| that this distribution should create shortcuts in. For
79 // SUBFOLDER_CHROME this returns GetShortcutName(). 79 // SUBFOLDER_CHROME this returns GetShortcutName().
80 virtual base::string16 GetStartMenuShortcutSubfolder( 80 virtual base::string16 GetStartMenuShortcutSubfolder(
81 Subfolder subfolder_type); 81 Subfolder subfolder_type);
82 82
83 // Returns the Browser ProgId prefix (e.g. ChromeHTML, ChromiumHTM, etc...).
84 // The full id is of the form |prefix|.|suffix| and is limited to a maximum
85 // length of 39 characters including null-terminator. See
86 // http://msdn.microsoft.com/library/aa911706.aspx for details. We define
87 // |suffix| as a fixed-length 26-character alphanumeric identifier, therefore
88 // the return value of this function must have a maximum length of
89 // 39 - 1(null-term) - 26(|suffix|) - 1(dot separator) = 11 characters.
90 virtual base::string16 GetBrowserProgIdPrefix();
91
92 // Returns the Browser ProgId description.
93 virtual base::string16 GetBrowserProgIdDesc();
94
95 virtual base::string16 GetPublisherName(); 83 virtual base::string16 GetPublisherName();
96 84
97 virtual base::string16 GetAppDescription(); 85 virtual base::string16 GetAppDescription();
98 86
99 virtual base::string16 GetLongAppDescription(); 87 virtual base::string16 GetLongAppDescription();
100 88
101 virtual std::string GetSafeBrowsingName(); 89 virtual std::string GetSafeBrowsingName();
102 90
103 #if defined(OS_WIN) 91 #if defined(OS_WIN)
104 virtual base::string16 GetDistributionData(HKEY root_key); 92 virtual base::string16 GetDistributionData(HKEY root_key);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 124
137 std::unique_ptr<AppRegistrationData> app_reg_data_; 125 std::unique_ptr<AppRegistrationData> app_reg_data_;
138 126
139 private: 127 private:
140 BrowserDistribution(); 128 BrowserDistribution();
141 129
142 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); 130 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution);
143 }; 131 };
144 132
145 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 133 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
OLDNEW
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome/installer/util/browser_distribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698