| 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_PREFS_INCOGNITO_MODE_PREFS_H_ | 5 #ifndef CHROME_BROWSER_PREFS_INCOGNITO_MODE_PREFS_H_ |
| 6 #define CHROME_BROWSER_PREFS_INCOGNITO_MODE_PREFS_H_ | 6 #define CHROME_BROWSER_PREFS_INCOGNITO_MODE_PREFS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 class PrefService; | 10 class PrefService; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // be called on any thread. | 68 // be called on any thread. |
| 69 static bool ArePlatformParentalControlsEnabledCached(); | 69 static bool ArePlatformParentalControlsEnabledCached(); |
| 70 | 70 |
| 71 #if defined(OS_WIN) | 71 #if defined(OS_WIN) |
| 72 // Initializes the parental control settings. Must be called on UI thread and | 72 // Initializes the parental control settings. Must be called on UI thread and |
| 73 // before |ArePlatformParentalControlsEnabled|. | 73 // before |ArePlatformParentalControlsEnabled|. |
| 74 static void InitializePlatformParentalControls(); | 74 static void InitializePlatformParentalControls(); |
| 75 #endif // OS_WIN | 75 #endif // OS_WIN |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 // Returns whether parental controls have been enabled on the platform, which | |
| 79 // if enabled will overrule the Availability as configured in prefs. | |
| 80 static bool ArePlatformParentalControlsEnabled(); | |
| 81 | |
| 82 DISALLOW_IMPLICIT_CONSTRUCTORS(IncognitoModePrefs); | 78 DISALLOW_IMPLICIT_CONSTRUCTORS(IncognitoModePrefs); |
| 83 }; | 79 }; |
| 84 | 80 |
| 85 #endif // CHROME_BROWSER_PREFS_INCOGNITO_MODE_PREFS_H_ | 81 #endif // CHROME_BROWSER_PREFS_INCOGNITO_MODE_PREFS_H_ |
| OLD | NEW |