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 <list> | 10 #include <list> |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
153 | 153 |
154 // Get the path of the next profile directory and increment the internal | 154 // Get the path of the next profile directory and increment the internal |
155 // count. | 155 // count. |
156 // Lack of side effects: | 156 // Lack of side effects: |
157 // This function doesn't actually create the directory or touch the file | 157 // This function doesn't actually create the directory or touch the file |
158 // system. | 158 // system. |
159 base::FilePath GenerateNextProfileDirectoryPath(); | 159 base::FilePath GenerateNextProfileDirectoryPath(); |
160 | 160 |
161 // Returns a ProfileInfoCache object which can be used to get information | 161 // Returns a ProfileInfoCache object which can be used to get information |
162 // about profiles without having to load them from disk. | 162 // about profiles without having to load them from disk. |
163 // Deprecated, use GetProfileAttributesStorage() instead. | |
Mike Lerman
2015/08/06 16:06:20
Perhaps put a comment on profile_info_cache.h as w
| |
163 ProfileInfoCache& GetProfileInfoCache(); | 164 ProfileInfoCache& GetProfileInfoCache(); |
164 | 165 |
166 // Returns a ProfileAttributesStorage object which can be used to get | |
167 // information about profiles without having to load them from disk. | |
168 ProfileAttributesStorage& GetProfileAttributesStorage(); | |
169 | |
165 // Returns a ProfileShortcut Manager that enables the caller to create | 170 // Returns a ProfileShortcut Manager that enables the caller to create |
166 // profile specfic desktop shortcuts. | 171 // profile specfic desktop shortcuts. |
167 ProfileShortcutManager* profile_shortcut_manager(); | 172 ProfileShortcutManager* profile_shortcut_manager(); |
168 | 173 |
169 // Schedules the profile at the given path to be deleted on shutdown. If we're | 174 // Schedules the profile at the given path to be deleted on shutdown. If we're |
170 // deleting the last profile, a new one will be created in its place, and in | 175 // deleting the last profile, a new one will be created in its place, and in |
171 // that case the callback will be called when profile creation is complete. | 176 // that case the callback will be called when profile creation is complete. |
172 void ScheduleProfileForDeletion(const base::FilePath& profile_dir, | 177 void ScheduleProfileForDeletion(const base::FilePath& profile_dir, |
173 const CreateCallback& callback); | 178 const CreateCallback& callback); |
174 | 179 |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
377 class ProfileManagerWithoutInit : public ProfileManager { | 382 class ProfileManagerWithoutInit : public ProfileManager { |
378 public: | 383 public: |
379 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 384 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); |
380 | 385 |
381 protected: | 386 protected: |
382 void DoFinalInitForServices(Profile*, bool) override {} | 387 void DoFinalInitForServices(Profile*, bool) override {} |
383 void DoFinalInitLogging(Profile*) override {} | 388 void DoFinalInitLogging(Profile*) override {} |
384 }; | 389 }; |
385 | 390 |
386 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 391 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
OLD | NEW |