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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 void SetGuestProfilePrefs(Profile* profile); | 271 void SetGuestProfilePrefs(Profile* profile); |
272 | 272 |
273 // For ChromeOS, determines if profile should be otr. | 273 // For ChromeOS, determines if profile should be otr. |
274 bool ShouldGoOffTheRecord(Profile* profile); | 274 bool ShouldGoOffTheRecord(Profile* profile); |
275 | 275 |
276 void RunCallbacks(const std::vector<CreateCallback>& callbacks, | 276 void RunCallbacks(const std::vector<CreateCallback>& callbacks, |
277 Profile* profile, | 277 Profile* profile, |
278 Profile::CreateStatus status); | 278 Profile::CreateStatus status); |
279 | 279 |
280 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 280 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| 281 // Updates the last active user of the current session. |
| 282 void UpdateLastUser(Profile* last_active); |
| 283 |
281 class BrowserListObserver : public chrome::BrowserListObserver { | 284 class BrowserListObserver : public chrome::BrowserListObserver { |
282 public: | 285 public: |
283 explicit BrowserListObserver(ProfileManager* manager); | 286 explicit BrowserListObserver(ProfileManager* manager); |
284 virtual ~BrowserListObserver(); | 287 virtual ~BrowserListObserver(); |
285 | 288 |
286 // chrome::BrowserListObserver implementation. | 289 // chrome::BrowserListObserver implementation. |
287 virtual void OnBrowserAdded(Browser* browser) OVERRIDE; | 290 virtual void OnBrowserAdded(Browser* browser) OVERRIDE; |
288 virtual void OnBrowserRemoved(Browser* browser) OVERRIDE; | 291 virtual void OnBrowserRemoved(Browser* browser) OVERRIDE; |
289 virtual void OnBrowserSetLastActive(Browser* browser) OVERRIDE; | 292 virtual void OnBrowserSetLastActive(Browser* browser) OVERRIDE; |
290 | 293 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 class ProfileManagerWithoutInit : public ProfileManager { | 354 class ProfileManagerWithoutInit : public ProfileManager { |
352 public: | 355 public: |
353 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 356 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); |
354 | 357 |
355 protected: | 358 protected: |
356 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 359 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} |
357 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 360 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} |
358 }; | 361 }; |
359 | 362 |
360 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 363 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
OLD | NEW |