OLD | NEW |
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_CHROMIUM_BINARIES_DISTRIBUTION_H_ | 7 #ifndef CHROME_INSTALLER_UTIL_CHROMIUM_BINARIES_DISTRIBUTION_H_ |
8 #define CHROME_INSTALLER_UTIL_CHROMIUM_BINARIES_DISTRIBUTION_H_ | 8 #define CHROME_INSTALLER_UTIL_CHROMIUM_BINARIES_DISTRIBUTION_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/installer/util/browser_distribution.h" | 13 #include "chrome/installer/util/browser_distribution.h" |
14 | 14 |
15 class ChromiumBinariesDistribution : public BrowserDistribution { | 15 class ChromiumBinariesDistribution : public BrowserDistribution { |
16 public: | 16 public: |
17 virtual base::string16 GetBrowserProgIdPrefix() override; | 17 base::string16 GetBrowserProgIdPrefix() override; |
18 | 18 |
19 virtual base::string16 GetBrowserProgIdDesc() override; | 19 base::string16 GetBrowserProgIdDesc() override; |
20 | 20 |
21 virtual base::string16 GetDisplayName() override; | 21 base::string16 GetDisplayName() override; |
22 | 22 |
23 virtual base::string16 GetShortcutName(ShortcutType shortcut_type) override; | 23 base::string16 GetShortcutName(ShortcutType shortcut_type) override; |
24 | 24 |
25 virtual int GetIconIndex(ShortcutType shortcut_type) override; | 25 int GetIconIndex(ShortcutType shortcut_type) override; |
26 | 26 |
27 virtual base::string16 GetBaseAppName() override; | 27 base::string16 GetBaseAppName() override; |
28 | 28 |
29 virtual base::string16 GetBaseAppId() override; | 29 base::string16 GetBaseAppId() override; |
30 | 30 |
31 virtual base::string16 GetInstallSubDir() override; | 31 base::string16 GetInstallSubDir() override; |
32 | 32 |
33 virtual base::string16 GetPublisherName() override; | 33 base::string16 GetPublisherName() override; |
34 | 34 |
35 virtual base::string16 GetAppDescription() override; | 35 base::string16 GetAppDescription() override; |
36 | 36 |
37 virtual base::string16 GetLongAppDescription() override; | 37 base::string16 GetLongAppDescription() override; |
38 | 38 |
39 virtual std::string GetSafeBrowsingName() override; | 39 std::string GetSafeBrowsingName() override; |
40 | 40 |
41 virtual base::string16 GetUninstallLinkName() override; | 41 base::string16 GetUninstallLinkName() override; |
42 | 42 |
43 virtual base::string16 GetUninstallRegPath() override; | 43 base::string16 GetUninstallRegPath() override; |
44 | 44 |
45 virtual DefaultBrowserControlPolicy GetDefaultBrowserControlPolicy() override; | 45 DefaultBrowserControlPolicy GetDefaultBrowserControlPolicy() override; |
46 | 46 |
47 virtual bool GetChromeChannel(base::string16* channel) override; | 47 bool GetChromeChannel(base::string16* channel) override; |
48 | 48 |
49 virtual bool GetCommandExecuteImplClsid( | 49 bool GetCommandExecuteImplClsid(base::string16* handler_class_uuid) override; |
50 base::string16* handler_class_uuid) override; | |
51 | 50 |
52 protected: | 51 protected: |
53 friend class BrowserDistribution; | 52 friend class BrowserDistribution; |
54 | 53 |
55 ChromiumBinariesDistribution(); | 54 ChromiumBinariesDistribution(); |
56 | 55 |
57 explicit ChromiumBinariesDistribution( | 56 explicit ChromiumBinariesDistribution( |
58 scoped_ptr<AppRegistrationData> app_reg_data); | 57 scoped_ptr<AppRegistrationData> app_reg_data); |
59 | 58 |
60 BrowserDistribution* browser_distribution_; | 59 BrowserDistribution* browser_distribution_; |
61 | 60 |
62 private: | 61 private: |
63 DISALLOW_COPY_AND_ASSIGN(ChromiumBinariesDistribution); | 62 DISALLOW_COPY_AND_ASSIGN(ChromiumBinariesDistribution); |
64 }; | 63 }; |
65 | 64 |
66 #endif // CHROME_INSTALLER_UTIL_CHROMIUM_BINARIES_DISTRIBUTION_H_ | 65 #endif // CHROME_INSTALLER_UTIL_CHROMIUM_BINARIES_DISTRIBUTION_H_ |
OLD | NEW |