| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // is owned by the receiving profile. If the receiving profile is off the | 182 // is owned by the receiving profile. If the receiving profile is off the |
| 183 // record, the same profile is returned. | 183 // record, the same profile is returned. |
| 184 virtual Profile* GetOffTheRecordProfile() = 0; | 184 virtual Profile* GetOffTheRecordProfile() = 0; |
| 185 | 185 |
| 186 // Destroys the incognito profile. | 186 // Destroys the incognito profile. |
| 187 virtual void DestroyOffTheRecordProfile() = 0; | 187 virtual void DestroyOffTheRecordProfile() = 0; |
| 188 | 188 |
| 189 // True if an incognito profile exists. | 189 // True if an incognito profile exists. |
| 190 virtual bool HasOffTheRecordProfile() = 0; | 190 virtual bool HasOffTheRecordProfile() = 0; |
| 191 | 191 |
| 192 // True if safe browsing has been enabled for this profile. |
| 193 virtual bool SafeBrowsingEnabled() = 0; |
| 194 |
| 192 // Return the original "recording" profile. This method returns this if the | 195 // Return the original "recording" profile. This method returns this if the |
| 193 // profile is not incognito. | 196 // profile is not incognito. |
| 194 virtual Profile* GetOriginalProfile() = 0; | 197 virtual Profile* GetOriginalProfile() = 0; |
| 195 | 198 |
| 196 // Returns a pointer to the ChromeAppCacheService instance for this profile. | 199 // Returns a pointer to the ChromeAppCacheService instance for this profile. |
| 197 virtual ChromeAppCacheService* GetAppCacheService() = 0; | 200 virtual ChromeAppCacheService* GetAppCacheService() = 0; |
| 198 | 201 |
| 199 // Returns a pointer to the DatabaseTracker instance for this profile. | 202 // Returns a pointer to the DatabaseTracker instance for this profile. |
| 200 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 203 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |
| 201 | 204 |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 bool restored_last_session_; | 574 bool restored_last_session_; |
| 572 | 575 |
| 573 // Accessibility events will only be propagated when the pause | 576 // Accessibility events will only be propagated when the pause |
| 574 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 577 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 575 // increment and decrement the level, respectively, rather than set it to | 578 // increment and decrement the level, respectively, rather than set it to |
| 576 // true or false, so that calls can be nested. | 579 // true or false, so that calls can be nested. |
| 577 int accessibility_pause_level_; | 580 int accessibility_pause_level_; |
| 578 }; | 581 }; |
| 579 | 582 |
| 580 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 583 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |