| 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 authentication phase. | 
|  | 68   Profile* GetSigninProfile(const base::FilePath& user_data_dir); | 
|  | 69 | 
|  | 70   static Profile* GetSigninProfile(); | 
|  | 71 #endif | 
|  | 72 | 
| 66   // Returns a profile for a specific profile directory within the user data | 73   // 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, | 74   // dir. This will return an existing profile it had already been created, | 
| 68   // otherwise it will create and manage it. | 75   // otherwise it will create and manage it. | 
| 69   Profile* GetProfile(const base::FilePath& profile_dir); | 76   Profile* GetProfile(const base::FilePath& profile_dir); | 
| 70 | 77 | 
| 71   // Returns total number of profiles available on this machine. | 78   // Returns total number of profiles available on this machine. | 
| 72   size_t GetNumberOfProfiles(); | 79   size_t GetNumberOfProfiles(); | 
| 73 | 80 | 
| 74   // Explicit asynchronous creation of a profile located at |profile_path|. | 81   // Explicit asynchronous creation of a profile located at |profile_path|. | 
| 75   // If the profile has already been created then callback is called | 82   // 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 { | 368 class ProfileManagerWithoutInit : public ProfileManager { | 
| 362  public: | 369  public: | 
| 363   explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 370   explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 
| 364 | 371 | 
| 365  protected: | 372  protected: | 
| 366   virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 373   virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 
| 367   virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 374   virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 
| 368 }; | 375 }; | 
| 369 | 376 | 
| 370 #endif  // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 377 #endif  // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 
| OLD | NEW | 
|---|