OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROFILES_PROFILE_MANAGER_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
9 | 9 |
10 #include <stddef.h> | 10 #include <stddef.h> |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // Get the path of the next profile directory and increment the internal | 157 // Get the path of the next profile directory and increment the internal |
158 // count. | 158 // count. |
159 // Lack of side effects: | 159 // Lack of side effects: |
160 // This function doesn't actually create the directory or touch the file | 160 // This function doesn't actually create the directory or touch the file |
161 // system. | 161 // system. |
162 base::FilePath GenerateNextProfileDirectoryPath(); | 162 base::FilePath GenerateNextProfileDirectoryPath(); |
163 | 163 |
164 // Returns a ProfileInfoCache object which can be used to get information | 164 // Returns a ProfileInfoCache object which can be used to get information |
165 // about profiles without having to load them from disk. | 165 // about profiles without having to load them from disk. |
| 166 // Deprecated, use GetProfileAttributesStorage() instead. |
166 ProfileInfoCache& GetProfileInfoCache(); | 167 ProfileInfoCache& GetProfileInfoCache(); |
167 | 168 |
| 169 // Returns a ProfileAttributesStorage object which can be used to get |
| 170 // information about profiles without having to load them from disk. |
| 171 ProfileAttributesStorage& GetProfileAttributesStorage(); |
| 172 |
168 // Returns a ProfileShortcut Manager that enables the caller to create | 173 // Returns a ProfileShortcut Manager that enables the caller to create |
169 // profile specfic desktop shortcuts. | 174 // profile specfic desktop shortcuts. |
170 ProfileShortcutManager* profile_shortcut_manager(); | 175 ProfileShortcutManager* profile_shortcut_manager(); |
171 | 176 |
172 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 177 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
173 // Schedules the profile at the given path to be deleted on shutdown. If we're | 178 // Schedules the profile at the given path to be deleted on shutdown. If we're |
174 // deleting the last profile, a new one will be created in its place, and in | 179 // deleting the last profile, a new one will be created in its place, and in |
175 // that case the callback will be called when profile creation is complete. | 180 // that case the callback will be called when profile creation is complete. |
176 void ScheduleProfileForDeletion(const base::FilePath& profile_dir, | 181 void ScheduleProfileForDeletion(const base::FilePath& profile_dir, |
177 const CreateCallback& callback); | 182 const CreateCallback& callback); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 class ProfileManagerWithoutInit : public ProfileManager { | 389 class ProfileManagerWithoutInit : public ProfileManager { |
385 public: | 390 public: |
386 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 391 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); |
387 | 392 |
388 protected: | 393 protected: |
389 void DoFinalInitForServices(Profile*, bool) override {} | 394 void DoFinalInitForServices(Profile*, bool) override {} |
390 void DoFinalInitLogging(Profile*) override {} | 395 void DoFinalInitLogging(Profile*) override {} |
391 }; | 396 }; |
392 | 397 |
393 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 398 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
OLD | NEW |