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 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H_ | 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H_ |
6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ | 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // Note: If the app has an installation specific suffix (e.g. on user-level | 134 // Note: If the app has an installation specific suffix (e.g. on user-level |
135 // Chrome installs), |app_name| should already be suffixed, this method will | 135 // Chrome installs), |app_name| should already be suffixed, this method will |
136 // then further suffix it with the profile id as described above. | 136 // then further suffix it with the profile id as described above. |
137 static string16 GetAppModelIdForProfile(const string16& app_name, | 137 static string16 GetAppModelIdForProfile(const string16& app_name, |
138 const FilePath& profile_path); | 138 const FilePath& profile_path); |
139 | 139 |
140 // Generates an application user model ID (AppUserModelId) for Chromium by | 140 // Generates an application user model ID (AppUserModelId) for Chromium by |
141 // calling GetAppModelIdForProfile() with ShellUtil::GetAppId() as app_name. | 141 // calling GetAppModelIdForProfile() with ShellUtil::GetAppId() as app_name. |
142 static string16 GetChromiumModelIdForProfile(const FilePath& profile_path); | 142 static string16 GetChromiumModelIdForProfile(const FilePath& profile_path); |
143 | 143 |
| 144 // Get the AppUserModelId for the App List, for the profile in |profile_path|. |
| 145 static string16 GetAppListAppModelIdForProfile(const FilePath& profile_path); |
| 146 |
144 // Returns the path to the Chromium icon. This is used to specify the icon | 147 // Returns the path to the Chromium icon. This is used to specify the icon |
145 // to use for the taskbar group on Win 7. | 148 // to use for the taskbar group on Win 7. |
146 static string16 GetChromiumIconPath(); | 149 static string16 GetChromiumIconPath(); |
147 | 150 |
148 // Migrates existing chrome shortcuts by tagging them with correct app id. | 151 // Migrates existing chrome shortcuts by tagging them with correct app id. |
149 // see http://crbug.com/28104 | 152 // see http://crbug.com/28104 |
150 static void MigrateChromiumShortcuts(); | 153 static void MigrateChromiumShortcuts(); |
151 | 154 |
152 // Returns the path to the Start Menu shortcut for the given Chrome. | 155 // Returns the path to the Start Menu shortcut for the given Chrome. |
153 static FilePath GetStartMenuShortcut(const FilePath& chrome_exe); | 156 static FilePath GetStartMenuShortcut(const FilePath& chrome_exe); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 // Set Chrome as the default handler for this protocol. | 297 // Set Chrome as the default handler for this protocol. |
295 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; | 298 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; |
296 | 299 |
297 std::string protocol_; | 300 std::string protocol_; |
298 | 301 |
299 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 302 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); |
300 }; | 303 }; |
301 }; | 304 }; |
302 | 305 |
303 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 306 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ |
OLD | NEW |