| 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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 return username_hash_; | 203 return username_hash_; |
| 204 } | 204 } |
| 205 #endif | 205 #endif |
| 206 | 206 |
| 207 Profile::ProfileType profile_type() const { | 207 Profile::ProfileType profile_type() const { |
| 208 return profile_type_; | 208 return profile_type_; |
| 209 } | 209 } |
| 210 | 210 |
| 211 bool IsOffTheRecord() const; | 211 bool IsOffTheRecord() const; |
| 212 | 212 |
| 213 // Returns whether parental controls have been enabled on the platform. This |
| 214 // function simply returns a cached value and thus the result may be stale. |
| 215 bool ArePlatformParentalControlsEnabledCached() const; |
| 216 |
| 213 IntegerPrefMember* incognito_availibility() const { | 217 IntegerPrefMember* incognito_availibility() const { |
| 214 return &incognito_availibility_pref_; | 218 return &incognito_availibility_pref_; |
| 215 } | 219 } |
| 216 | 220 |
| 217 #if defined(ENABLE_CONFIGURATION_POLICY) | 221 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 218 policy::PolicyHeaderIOHelper* policy_header_helper() const { | 222 policy::PolicyHeaderIOHelper* policy_header_helper() const { |
| 219 return policy_header_helper_.get(); | 223 return policy_header_helper_.get(); |
| 220 } | 224 } |
| 221 #endif | 225 #endif |
| 222 | 226 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 | 590 |
| 587 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 591 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 588 bool initialized_on_UI_thread_; | 592 bool initialized_on_UI_thread_; |
| 589 | 593 |
| 590 const Profile::ProfileType profile_type_; | 594 const Profile::ProfileType profile_type_; |
| 591 | 595 |
| 592 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 596 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 593 }; | 597 }; |
| 594 | 598 |
| 595 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 599 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |