Chromium Code Reviews| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 // This function is temporary and will soon be moved to ash. As such avoid | 69 // This function is temporary and will soon be moved to ash. As such avoid |
| 70 // using it at all cost. | 70 // using it at all cost. |
| 71 // TODO(skuhne): Move into ash's new user management function. | 71 // TODO(skuhne): Move into ash's new user management function. |
| 72 static Profile* GetActiveUserProfile(); | 72 static Profile* GetActiveUserProfile(); |
| 73 | 73 |
| 74 // Returns a profile for a specific profile directory within the user data | 74 // Returns a profile for a specific profile directory within the user data |
| 75 // dir. This will return an existing profile it had already been created, | 75 // dir. This will return an existing profile it had already been created, |
| 76 // otherwise it will create and manage it. | 76 // otherwise it will create and manage it. |
| 77 Profile* GetProfile(const base::FilePath& profile_dir); | 77 Profile* GetProfile(const base::FilePath& profile_dir); |
| 78 | 78 |
| 79 // Creates and returns a profile. | |
| 80 Profile* SetupProfile(const base::FilePath& profile_dir); | |
|
noms (inactive)
2015/02/18 18:55:25
I don't think this is right. Is it just for testin
rkaplow
2015/02/18 19:58:57
Was just in error it was not private, it's intende
| |
| 81 | |
| 79 // Returns total number of profiles available on this machine. | 82 // Returns total number of profiles available on this machine. |
| 80 size_t GetNumberOfProfiles(); | 83 size_t GetNumberOfProfiles(); |
| 81 | 84 |
| 82 // Explicit asynchronous creation of a profile located at |profile_path|. | 85 // Explicit asynchronous creation of a profile located at |profile_path|. |
| 83 // If the profile has already been created then callback is called | 86 // If the profile has already been created then callback is called |
| 84 // immediately. Should be called on the UI thread. | 87 // immediately. Should be called on the UI thread. |
| 85 void CreateProfileAsync(const base::FilePath& profile_path, | 88 void CreateProfileAsync(const base::FilePath& profile_path, |
| 86 const CreateCallback& callback, | 89 const CreateCallback& callback, |
| 87 const base::string16& name, | 90 const base::string16& name, |
| 88 const base::string16& icon_url, | 91 const base::string16& icon_url, |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 360 class ProfileManagerWithoutInit : public ProfileManager { | 363 class ProfileManagerWithoutInit : public ProfileManager { |
| 361 public: | 364 public: |
| 362 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 365 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); |
| 363 | 366 |
| 364 protected: | 367 protected: |
| 365 void DoFinalInitForServices(Profile*, bool) override {} | 368 void DoFinalInitForServices(Profile*, bool) override {} |
| 366 void DoFinalInitLogging(Profile*) override {} | 369 void DoFinalInitLogging(Profile*) override {} |
| 367 }; | 370 }; |
| 368 | 371 |
| 369 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 372 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
| OLD | NEW |