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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 | 56 |
57 // DEPRECATED: DO NOT USE unless in ChromeOS. | 57 // DEPRECATED: DO NOT USE unless in ChromeOS. |
58 // Same as instance method but provides the default user_data_dir as well. | 58 // Same as instance method but provides the default user_data_dir as well. |
59 static Profile* GetDefaultProfile(); | 59 static Profile* GetDefaultProfile(); |
60 | 60 |
61 // DEPRECATED: DO NOT USE unless in ChromeOS. | 61 // DEPRECATED: DO NOT USE unless in ChromeOS. |
62 // Same as GetDefaultProfile() but returns OffTheRecord profile | 62 // Same as GetDefaultProfile() but returns OffTheRecord profile |
63 // if guest login. | 63 // if guest login. |
64 static Profile* GetDefaultProfileOrOffTheRecord(); | 64 static Profile* GetDefaultProfileOrOffTheRecord(); |
65 | 65 |
66 #if defined(OS_CHROMEOS) | |
67 // Returns OffTheRecord profile for usign during signing phase. | |
Nikita (slow)
2013/04/04 12:59:13
nit: Returns OffTheRecord profile used during user
| |
68 Profile* GetSigninProfile(const base::FilePath& user_data_dir); | |
sail
2013/04/04 14:38:37
Can we keep this out of ProfileManager? Maybe put
Nikita (slow)
2013/04/04 14:50:05
I think that we could not get this code out of Pr
sail
2013/04/04 15:09:34
Currently profile manager is a very very large cla
dzhioev (left Google)
2013/04/04 15:54:41
* I'm not sure that we can implement GetSigninProf
| |
69 | |
70 // Returns OffTheRecord profile for usign during signing phase. | |
Nikita (slow)
2013/04/04 12:59:13
nit: Drop second comment, place both methods one a
| |
71 static Profile* GetSigninProfile(); | |
72 #endif | |
73 | |
66 // 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 |
67 // 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, |
68 // otherwise it will create and manage it. | 76 // otherwise it will create and manage it. |
69 Profile* GetProfile(const base::FilePath& profile_dir); | 77 Profile* GetProfile(const base::FilePath& profile_dir); |
70 | 78 |
71 // Returns total number of profiles available on this machine. | 79 // Returns total number of profiles available on this machine. |
72 size_t GetNumberOfProfiles(); | 80 size_t GetNumberOfProfiles(); |
73 | 81 |
74 // Explicit asynchronous creation of a profile located at |profile_path|. | 82 // Explicit asynchronous creation of a profile located at |profile_path|. |
75 // If the profile has already been created then callback is called | 83 // If the profile has already been created then callback is called |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
361 class ProfileManagerWithoutInit : public ProfileManager { | 369 class ProfileManagerWithoutInit : public ProfileManager { |
362 public: | 370 public: |
363 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 371 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); |
364 | 372 |
365 protected: | 373 protected: |
366 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 374 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} |
367 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 375 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} |
368 }; | 376 }; |
369 | 377 |
370 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 378 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
OLD | NEW |