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

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

Issue 8539043: Refactor ProfileInfoCache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AVATAR_MENU_MODEL_H_ 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_MODEL_H_
6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_MODEL_H_ 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_MODEL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/file_path.h"
12 #include "base/string16.h" 13 #include "base/string16.h"
13 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
14 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
15 16
16 class AvatarMenuModelObserver; 17 class AvatarMenuModelObserver;
17 class Browser; 18 class Browser;
18 class ProfileInfoInterface; 19 class ProfileInfoInterface;
19 20
20 namespace gfx { 21 namespace gfx {
21 class Image; 22 class Image;
(...skipping 17 matching lines...) Expand all
39 bool active; 40 bool active;
40 41
41 // The name of this profile. 42 // The name of this profile.
42 string16 name; 43 string16 name;
43 44
44 // A string representing the sync state of the profile. 45 // A string representing the sync state of the profile.
45 string16 sync_state; 46 string16 sync_state;
46 47
47 // The index in the |profile_cache| that this Item represents. 48 // The index in the |profile_cache| that this Item represents.
48 size_t model_index; 49 size_t model_index;
50
51 // The file path of the profile.
52 FilePath path;
49 }; 53 };
50 54
51 // Constructor. No parameters can be NULL in practice. |browser| can be NULL 55 // Constructor. No parameters can be NULL in practice. |browser| can be NULL
52 // and a new one will be created if an action requires it. 56 // and a new one will be created if an action requires it.
53 AvatarMenuModel(ProfileInfoInterface* profile_cache, 57 AvatarMenuModel(ProfileInfoInterface* profile_cache,
54 AvatarMenuModelObserver* observer, 58 AvatarMenuModelObserver* observer,
55 Browser* browser); 59 Browser* browser);
56 virtual ~AvatarMenuModel(); 60 virtual ~AvatarMenuModel();
57 61
58 // Actions performed by the view that the controller forwards back to the 62 // Actions performed by the view that the controller forwards back to the
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // List of built "menu items." 110 // List of built "menu items."
107 std::vector<Item*> items_; 111 std::vector<Item*> items_;
108 112
109 // Listens for notifications from the ProfileInfoCache. 113 // Listens for notifications from the ProfileInfoCache.
110 content::NotificationRegistrar registrar_; 114 content::NotificationRegistrar registrar_;
111 115
112 DISALLOW_COPY_AND_ASSIGN(AvatarMenuModel); 116 DISALLOW_COPY_AND_ASSIGN(AvatarMenuModel);
113 }; 117 };
114 118
115 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_MODEL_H_ 119 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/background/background_mode_manager.cc ('k') | chrome/browser/profiles/avatar_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698