| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // asynchronously. | 132 // asynchronously. |
| 133 static base::FilePath CreateMultiProfileAsync( | 133 static base::FilePath CreateMultiProfileAsync( |
| 134 const base::string16& name, | 134 const base::string16& name, |
| 135 const base::string16& icon_url, | 135 const base::string16& icon_url, |
| 136 const CreateCallback& callback, | 136 const CreateCallback& callback, |
| 137 const std::string& supervised_user_id); | 137 const std::string& supervised_user_id); |
| 138 | 138 |
| 139 // Returns the full path to be used for guest profiles. | 139 // Returns the full path to be used for guest profiles. |
| 140 static base::FilePath GetGuestProfilePath(); | 140 static base::FilePath GetGuestProfilePath(); |
| 141 | 141 |
| 142 // Returns the full path to be used for system profiles. |
| 143 static base::FilePath GetSystemProfilePath(); |
| 144 |
| 142 // Get the path of the next profile directory and increment the internal | 145 // Get the path of the next profile directory and increment the internal |
| 143 // count. | 146 // count. |
| 144 // Lack of side effects: | 147 // Lack of side effects: |
| 145 // This function doesn't actually create the directory or touch the file | 148 // This function doesn't actually create the directory or touch the file |
| 146 // system. | 149 // system. |
| 147 base::FilePath GenerateNextProfileDirectoryPath(); | 150 base::FilePath GenerateNextProfileDirectoryPath(); |
| 148 | 151 |
| 149 // Returns a ProfileInfoCache object which can be used to get information | 152 // Returns a ProfileInfoCache object which can be used to get information |
| 150 // about profiles without having to load them from disk. | 153 // about profiles without having to load them from disk. |
| 151 ProfileInfoCache& GetProfileInfoCache(); | 154 ProfileInfoCache& GetProfileInfoCache(); |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 class ProfileManagerWithoutInit : public ProfileManager { | 360 class ProfileManagerWithoutInit : public ProfileManager { |
| 358 public: | 361 public: |
| 359 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 362 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); |
| 360 | 363 |
| 361 protected: | 364 protected: |
| 362 void DoFinalInitForServices(Profile*, bool) override {} | 365 void DoFinalInitForServices(Profile*, bool) override {} |
| 363 void DoFinalInitLogging(Profile*) override {} | 366 void DoFinalInitLogging(Profile*) override {} |
| 364 }; | 367 }; |
| 365 | 368 |
| 366 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 369 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
| OLD | NEW |