| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 159 |
| 160 // Generates an application user model ID (AppUserModelId) for Chromium by | 160 // Generates an application user model ID (AppUserModelId) for Chromium by |
| 161 // calling GetAppModelIdForProfile() with ShellUtil::GetAppId() as app_name. | 161 // calling GetAppModelIdForProfile() with ShellUtil::GetAppId() as app_name. |
| 162 static string16 GetChromiumModelIdForProfile( | 162 static string16 GetChromiumModelIdForProfile( |
| 163 const base::FilePath& profile_path); | 163 const base::FilePath& profile_path); |
| 164 | 164 |
| 165 // Get the AppUserModelId for the App List, for the profile in |profile_path|. | 165 // Get the AppUserModelId for the App List, for the profile in |profile_path|. |
| 166 static string16 GetAppListAppModelIdForProfile( | 166 static string16 GetAppListAppModelIdForProfile( |
| 167 const base::FilePath& profile_path); | 167 const base::FilePath& profile_path); |
| 168 | 168 |
| 169 // Returns the location (path and index) of the Chromium icon, (e.g., | |
| 170 // "C:\path\to\chrome.exe,0"). This is used to specify the icon to use | |
| 171 // for the taskbar group on Win 7. | |
| 172 static string16 GetChromiumIconLocation(); | |
| 173 | |
| 174 // Migrates existing chrome shortcuts by tagging them with correct app id. | 169 // Migrates existing chrome shortcuts by tagging them with correct app id. |
| 175 // see http://crbug.com/28104 | 170 // see http://crbug.com/28104 |
| 176 static void MigrateChromiumShortcuts(); | 171 static void MigrateChromiumShortcuts(); |
| 177 | 172 |
| 178 // Migrates all shortcuts in |path| which point to |chrome_exe| such that they | 173 // Migrates all shortcuts in |path| which point to |chrome_exe| such that they |
| 179 // have the appropriate AppUserModelId. Also makes sure those shortcuts have | 174 // have the appropriate AppUserModelId. Also makes sure those shortcuts have |
| 180 // the dual_mode property set if such is requested by |check_dual_mode|. | 175 // the dual_mode property set if such is requested by |check_dual_mode|. |
| 181 // Returns the number of shortcuts migrated. | 176 // Returns the number of shortcuts migrated. |
| 182 // This method should not be called prior to Windows 7. | 177 // This method should not be called prior to Windows 7. |
| 183 // This method is only public for the sake of tests and shouldn't be called | 178 // This method is only public for the sake of tests and shouldn't be called |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 // Set Chrome as the default handler for this protocol. | 326 // Set Chrome as the default handler for this protocol. |
| 332 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; | 327 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; |
| 333 | 328 |
| 334 std::string protocol_; | 329 std::string protocol_; |
| 335 | 330 |
| 336 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); | 331 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); |
| 337 }; | 332 }; |
| 338 }; | 333 }; |
| 339 | 334 |
| 340 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ | 335 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ |
| OLD | NEW |