Chromium Code Reviews| Index: chrome/browser/profiles/profile_shortcut_manager_win.h |
| =================================================================== |
| --- chrome/browser/profiles/profile_shortcut_manager_win.h (revision 0) |
| +++ chrome/browser/profiles/profile_shortcut_manager_win.h (revision 0) |
| @@ -0,0 +1,55 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ |
| +#define CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ |
| +#pragma once |
| + |
| +#include <vector> |
| + |
| +#include "base/string16.h" |
| +#include "chrome/browser/profiles/profile_info_cache_observer.h" |
| + |
| +class ProfileShortcutManagerWin : public ProfileInfoCacheObserver { |
| +public: |
| + ProfileShortcutManagerWin(); |
| + ~ProfileShortcutManagerWin(); |
| + |
| + // ProfileInfoCacheObserver |
| + virtual void OnProfileAdded(string16 profile_name, |
| + string16 profile_base_dir); |
| + virtual void OnProfileRemoved(string16 profile_name); |
| + virtual void OnProfileNameChanged(string16 old_profile_name, |
| + string16 new_profile_name); |
| + |
| + // Remove desktop shortcuts associated with profiles in |shortcut_names|. For |
| + // the format of |shortcut_names|, see the |shortcut| argument in |
| + // ShellUtil::GetChromeShortcutName. |
| + static void RemoveChromeDesktopShortcutsForProfiles( |
| + std::vector<string16> shortcut_names); |
| + |
| + // Creates a desktop shortcut to open Chrome with the given profile name and |
| + // directory. Must be called on the FILE thread. Iff |create|, create |
| + // shortcut if it doesn't already exist. |
| + static void CreateChromeDesktopShortcutForProfile( |
| + string16 profile_name, |
| + string16 directory, |
| + bool create); |
| + |
| + // Renames an existing Chrome desktop profile shortcut. Must be called on the |
| + // FILE thread. |
| + static void RenameChromeDesktopShortcutForProfile( |
| + string16 old_profile_name, |
| + string16 new_profile_name); |
| + |
| + // Updates the arguments to a Chrome desktop shortcut for a profile. Must be |
| + // called on the FILE thread. |
| + static void UpdateChromeDesktopShortcutForProfile( |
| + string16 shortcut, |
|
robertshield
2011/11/18 03:58:57
micro nit: looks like you could wrap this at the (
Miranda Callahan
2011/11/18 19:00:36
I'll do you one better and rewrap this and the two
|
| + string16 arguments); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ProfileShortcutManagerWin); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_PROFILES_PROFILE_SHORTCUT_MANAGER_WIN_H_ |
| Property changes on: chrome\browser\profiles\profile_shortcut_manager_win.h |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |