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_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 | |
8 | 7 |
9 #include <vector> | 8 #include <vector> |
10 | 9 |
11 #include "base/string16.h" | 10 #include "base/string16.h" |
12 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 11 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
13 | 12 |
14 // This class observes the ProfileInfoCache, and makes corresponding changes | 13 // This class observes the ProfileInfoCache, and makes corresponding changes |
15 // to shortcuts on the user's desktop in Windows systems. | 14 // to shortcuts on the user's desktop in Windows systems. |
16 class ProfileShortcutManagerWin : public ProfileInfoCacheObserver { | 15 class ProfileShortcutManagerWin : public ProfileInfoCacheObserver { |
17 public: | 16 public: |
(...skipping 20 matching lines...) Expand all Loading... |
38 // Takes a vector of profile names (for example: "Sparky") and generates a | 37 // Takes a vector of profile names (for example: "Sparky") and generates a |
39 // vector of shortcut link names (for example: "Chromium (Sparky).lnk"). | 38 // vector of shortcut link names (for example: "Chromium (Sparky).lnk"). |
40 static std::vector<string16> GenerateShortcutsFromProfiles( | 39 static std::vector<string16> GenerateShortcutsFromProfiles( |
41 const std::vector<string16>& profile_names); | 40 const std::vector<string16>& profile_names); |
42 | 41 |
43 private: | 42 private: |
44 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin); | 43 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin); |
45 }; | 44 }; |
46 | 45 |
47 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ | 46 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ |
OLD | NEW |