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

Side by Side Diff: chrome/browser/profile_manager.h

Issue 4247: Port some things in browser/{download,history}, minor things in common.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/history/visitsegment_database.cc ('k') | chrome/browser/safe_browsing/bloom_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698