| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 // | 290 // |
| 291 // |access| defines what the caller plans to do with the service. See | 291 // |access| defines what the caller plans to do with the service. See |
| 292 // the ServiceAccessType definition above. | 292 // the ServiceAccessType definition above. |
| 293 virtual WebDataService* GetWebDataService(ServiceAccessType access) = 0; | 293 virtual WebDataService* GetWebDataService(ServiceAccessType access) = 0; |
| 294 | 294 |
| 295 // Similar to GetWebDataService(), but won't create the web data service if it | 295 // Similar to GetWebDataService(), but won't create the web data service if it |
| 296 // doesn't already exist. | 296 // doesn't already exist. |
| 297 virtual WebDataService* GetWebDataServiceWithoutCreating() = 0; | 297 virtual WebDataService* GetWebDataServiceWithoutCreating() = 0; |
| 298 | 298 |
| 299 // Returns the PasswordStore for this profile. This is owned by the Profile. | 299 // Returns the PasswordStore for this profile. This is owned by the Profile. |
| 300 // This may return NULL if the implementation is unable to create a |
| 301 // password store (e.g. a corrupt database). |
| 300 virtual PasswordStore* GetPasswordStore(ServiceAccessType access) = 0; | 302 virtual PasswordStore* GetPasswordStore(ServiceAccessType access) = 0; |
| 301 | 303 |
| 302 // Retrieves a pointer to the PrefService that manages the preferences | 304 // Retrieves a pointer to the PrefService that manages the preferences |
| 303 // for this user profile. The PrefService is lazily created the first | 305 // for this user profile. The PrefService is lazily created the first |
| 304 // time that this method is called. | 306 // time that this method is called. |
| 305 virtual PrefService* GetPrefs() = 0; | 307 virtual PrefService* GetPrefs() = 0; |
| 306 | 308 |
| 307 // Retrieves a pointer to the PrefService that manages the preferences | 309 // Retrieves a pointer to the PrefService that manages the preferences |
| 308 // for OffTheRecord Profiles. This PrefService is lazily created the first | 310 // for OffTheRecord Profiles. This PrefService is lazily created the first |
| 309 // time that this method is called. | 311 // time that this method is called. |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 bool restored_last_session_; | 578 bool restored_last_session_; |
| 577 | 579 |
| 578 // Accessibility events will only be propagated when the pause | 580 // Accessibility events will only be propagated when the pause |
| 579 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 581 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 580 // increment and decrement the level, respectively, rather than set it to | 582 // increment and decrement the level, respectively, rather than set it to |
| 581 // true or false, so that calls can be nested. | 583 // true or false, so that calls can be nested. |
| 582 int accessibility_pause_level_; | 584 int accessibility_pause_level_; |
| 583 }; | 585 }; |
| 584 | 586 |
| 585 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 587 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |