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

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

Issue 10836247: Refactor ShellUtil shortcut code -- single multi-purpose methods as opposed to many slighlty diffe… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respect microsoft's definition of correct C++ Created 8 years, 2 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 | Annotate | Revision Log
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 "base/string16.h"
9 #include "chrome/browser/profiles/profile_info_cache.h" 10 #include "chrome/browser/profiles/profile_info_cache.h"
10 #include "ui/gfx/image/image.h"
11 11
12 class ProfileManager; 12 class ProfileManager;
13 13
14 class ProfileShortcutManager { 14 class ProfileShortcutManager {
15 public: 15 public:
16 virtual ~ProfileShortcutManager(); 16 virtual ~ProfileShortcutManager();
17 17
18 // Create a profile shortcut for the profile with path |profile_path|, plus 18 // Create a profile shortcut for the profile with path |profile_path|, plus
19 // update the original profile shortcut if |profile_path| is the second 19 // update the original profile shortcut if |profile_path| is the second
20 // profile created. 20 // profile created.
21 virtual void CreateProfileShortcut(const FilePath& profile_path) = 0; 21 virtual void CreateProfileShortcut(const FilePath& profile_path) = 0;
22 22
23 static bool IsFeatureEnabled(); 23 static bool IsFeatureEnabled();
24 static ProfileShortcutManager* Create(ProfileManager* manager); 24 static ProfileShortcutManager* Create(ProfileManager* manager);
25 static string16 GetShortcutNameForProfile(const string16& profile_name);
25 26
26 protected: 27 protected:
27 ProfileShortcutManager(); 28 ProfileShortcutManager();
28 29
29 private: 30 private:
30 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManager); 31 DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManager);
31 }; 32 };
32 33
33 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_H_ 34 #endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/first_run/first_run_win.cc ('k') | chrome/browser/profiles/profile_shortcut_manager_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698