Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: chrome/browser/profiles/profile_shortcut_manager.h

Issue 10837352: Update profile desktop shortcuts (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "chrome/browser/profiles/profile_info_cache_observer.h"
9 #include "ui/gfx/image/image.h" 10 #include "ui/gfx/image/image.h"
10 11
11 class ProfileShortcutManager { 12 class ProfileShortcutManager : public ProfileInfoCacheObserver {
12 public: 13 public:
13 virtual ~ProfileShortcutManager(); 14 virtual ~ProfileShortcutManager();
14 15
15 static bool IsFeatureEnabled(); 16 static bool IsFeatureEnabled();
16 static ProfileShortcutManager* Create(); 17 static ProfileShortcutManager* Create();
17 18
18 virtual void CreateChromeDesktopShortcut( 19 virtual void CreateChromeDesktopShortcut(
19 const FilePath& profile_path, const string16& profile_name, 20 const FilePath& profile_path, const string16& profile_name,
20 const gfx::Image& avatar_image) = 0; 21 const gfx::Image& avatar_image) = 0;
21 virtual void DeleteChromeDesktopShortcut(const FilePath& profile_path) = 0; 22 virtual void DeleteChromeDesktopShortcut(const FilePath& profile_path,
23 const string16& profile_name) = 0;
24 virtual void OnProfileAdded(const FilePath& profile_path) OVERRIDE = 0;
25 virtual void OnProfileWillBeRemoved(const FilePath& profile_path) OVERRIDE
26 = 0;
27 virtual void OnProfileWasRemoved(const FilePath& profile_path,
28 const string16& profile_name) OVERRIDE = 0;
29 virtual void OnProfileNameChanged(const FilePath& profile_path,
30 const string16& old_profile_name) OVERRIDE
31 = 0;
32 virtual void OnProfileAvatarChanged(const FilePath& profile_path) OVERRIDE
33 = 0;
22 34
23 protected: 35 protected:
24 ProfileShortcutManager(); 36 ProfileShortcutManager();
25 37
26 private: 38 private:
27 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManager); 39 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManager);
28 }; 40 };
29 41
30 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_H_ 42 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698