summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles/profile_info_cache_observer.h
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 14:58:23 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 14:58:23 +0000
commitf8b2ca3555497caedc341ec16f110e310c15562d (patch)
treee9d22ccd68a40201dc1bb9834efb7ed26ab49561 /chrome/browser/profiles/profile_info_cache_observer.h
parentd21a8a5fb4d3af19452149bdcf7f6855ba80a194 (diff)
downloadchromium_src-f8b2ca3555497caedc341ec16f110e310c15562d.zip
chromium_src-f8b2ca3555497caedc341ec16f110e310c15562d.tar.gz
chromium_src-f8b2ca3555497caedc341ec16f110e310c15562d.tar.bz2
Add Windows desktop shortcut for multiple profiles.
BUG=87770 TEST=new unit tests added with this CL. Review URL: http://codereview.chromium.org/8502033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile_info_cache_observer.h')
-rw-r--r--chrome/browser/profiles/profile_info_cache_observer.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/browser/profiles/profile_info_cache_observer.h b/chrome/browser/profiles/profile_info_cache_observer.h
new file mode 100644
index 0000000..43beaef7
--- /dev/null
+++ b/chrome/browser/profiles/profile_info_cache_observer.h
@@ -0,0 +1,30 @@
+// 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_INFO_CACHE_OBSERVER_H_
+#define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_
+#pragma once
+
+// This class provides an Observer interface to watch for changes to the
+// ProfileInfoCache.
+class ProfileInfoCacheObserver {
+ public:
+ virtual ~ProfileInfoCacheObserver() {}
+
+ virtual void OnProfileAdded(
+ const string16& profile_name,
+ const string16& profile_base_dir) = 0;
+ virtual void OnProfileRemoved(
+ const string16& profile_name) = 0;
+ virtual void OnProfileNameChanged(
+ const string16& old_profile_name,
+ const string16& new_profile_name) = 0;
+
+ protected:
+ ProfileInfoCacheObserver() {}
+
+ DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver);
+};
+
+#endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_