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

Unified Diff: chrome/browser/profiles/profile_info_interface.h

Issue 7544031: Create AvatarMenuModel for the new avatar menu interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_info_interface.h
diff --git a/chrome/browser/profiles/profile_info_interface.h b/chrome/browser/profiles/profile_info_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..b43c4c1dc39837cadd571033d0199b79524c2736
--- /dev/null
+++ b/chrome/browser/profiles/profile_info_interface.h
@@ -0,0 +1,36 @@
+// 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_INTERFACE_H_
+#define CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_
+
+#include "base/file_path.h"
+#include "base/string16.h"
+
+namespace gfx {
+class Image;
+}
+
+// This abstract interface is used to query the profiles backend for information
+// about the different profiles. Its sole concrete implementation is the
+// ProfileInfoCache. This interface exists largely to assist in testing.
+class ProfileInfoInterface {
+ public:
+ virtual size_t GetNumberOfProfiles() const = 0;
+
+ virtual size_t GetIndexOfProfileWithPath(
+ const FilePath& profile_path) const = 0;
+
+ virtual string16 GetNameOfProfileAtIndex(size_t index) const = 0;
+
+ virtual FilePath GetPathOfProfileAtIndex(size_t index) const = 0;
+
+ virtual const gfx::Image& GetAvatarIconOfProfileAtIndex(
+ size_t index) const = 0;
+
+ protected:
+ virtual ~ProfileInfoInterface() {}
+};
+
+#endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698