| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/string16.h" | 13 #include "base/string16.h" |
| 14 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 14 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
| 15 | 15 |
| 16 // This class observes the ProfileInfoCache, and makes corresponding changes | 16 // This class observes the ProfileInfoCache, and makes corresponding changes |
| 17 // to shortcuts on the user's desktop in Windows systems. | 17 // to shortcuts on the user's desktop in Windows systems. |
| 18 class ProfileShortcutManagerWin : public ProfileInfoCacheObserver { | 18 class ProfileShortcutManagerWin : public ProfileInfoCacheObserver { |
| 19 public: | 19 public: |
| 20 ProfileShortcutManagerWin(); | 20 ProfileShortcutManagerWin(); |
| 21 virtual ~ProfileShortcutManagerWin(); | 21 virtual ~ProfileShortcutManagerWin(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Updates the arguments to a Chrome desktop shortcut for a profile. Must be | 53 // Updates the arguments to a Chrome desktop shortcut for a profile. Must be |
| 54 // called on the FILE thread. | 54 // called on the FILE thread. |
| 55 static void UpdateChromeDesktopShortcutForProfile( | 55 static void UpdateChromeDesktopShortcutForProfile( |
| 56 const string16& shortcut, | 56 const string16& shortcut, |
| 57 const string16& arguments); | 57 const string16& arguments); |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin); | 59 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ | 62 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ |
| OLD | NEW |