OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This class keeps track of the currently-active profiles in the runtime. | 5 // This class keeps track of the currently-active profiles in the runtime. |
6 | 6 |
7 #ifndef CHROME_BROWSER_PROFILE_MANAGER_H__ | 7 #ifndef CHROME_BROWSER_PROFILE_MANAGER_H__ |
8 #define CHROME_BROWSER_PROFILE_MANAGER_H__ | 8 #define CHROME_BROWSER_PROFILE_MANAGER_H__ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // Returns the canonical form of the given ID string. | 146 // Returns the canonical form of the given ID string. |
147 static std::wstring CanonicalizeID(const std::wstring& id); | 147 static std::wstring CanonicalizeID(const std::wstring& id); |
148 | 148 |
149 private: | 149 private: |
150 // Returns the AvailableProfile entry associated with the given ID, | 150 // Returns the AvailableProfile entry associated with the given ID, |
151 // or NULL if no match is found. | 151 // or NULL if no match is found. |
152 AvailableProfile* GetAvailableProfileByID(const std::wstring& id); | 152 AvailableProfile* GetAvailableProfileByID(const std::wstring& id); |
153 | 153 |
154 // We keep a simple vector of profiles rather than something fancier | 154 // We keep a simple vector of profiles rather than something fancier |
155 // because we expect there to be a small number of profiles active. | 155 // because we expect there to be a small number of profiles active. |
156 typedef std::vector<Profile*> ProfileVector; | |
157 ProfileVector profiles_; | 156 ProfileVector profiles_; |
158 | 157 |
159 AvailableProfileVector available_profiles_; | 158 AvailableProfileVector available_profiles_; |
160 | 159 |
161 DISALLOW_EVIL_CONSTRUCTORS(ProfileManager); | 160 DISALLOW_EVIL_CONSTRUCTORS(ProfileManager); |
162 }; | 161 }; |
163 | 162 |
164 #endif // CHROME_BROWSER_PROFILE_MANAGER_H__ | 163 #endif // CHROME_BROWSER_PROFILE_MANAGER_H__ |
165 | 164 |
OLD | NEW |