| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_MANAGED_MODE_MANAGED_USER_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ |
| 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ | 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 // ProfileKeyedService override: | 57 // ProfileKeyedService override: |
| 58 virtual void Shutdown() OVERRIDE; | 58 virtual void Shutdown() OVERRIDE; |
| 59 | 59 |
| 60 bool ProfileIsManaged() const; | 60 bool ProfileIsManaged() const; |
| 61 | 61 |
| 62 // Checks whether the given profile is managed without constructing a | 62 // Checks whether the given profile is managed without constructing a |
| 63 // ManagedUserService (which could lead to cyclic dependencies). | 63 // ManagedUserService (which could lead to cyclic dependencies). |
| 64 static bool ProfileIsManaged(Profile* profile); | 64 static bool ProfileIsManaged(Profile* profile); |
| 65 | 65 |
| 66 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 66 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 67 | 67 |
| 68 // Returns true if managed users are enabled by either Finch or the command | 68 // Returns true if managed users are enabled by either Finch or the command |
| 69 // line flag. | 69 // line flag. |
| 70 // TODO(pamg, sergiu): Remove this once the feature is fully launched. | 70 // TODO(pamg, sergiu): Remove this once the feature is fully launched. |
| 71 static bool AreManagedUsersEnabled(); | 71 static bool AreManagedUsersEnabled(); |
| 72 | 72 |
| 73 // Returns the URL filter for the IO thread, for filtering network requests | 73 // Returns the URL filter for the IO thread, for filtering network requests |
| 74 // (in ManagedModeResourceThrottle). | 74 // (in ManagedModeResourceThrottle). |
| 75 scoped_refptr<const ManagedModeURLFilter> GetURLFilterForIOThread(); | 75 scoped_refptr<const ManagedModeURLFilter> GetURLFilterForIOThread(); |
| 76 | 76 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // True iff we're waiting for the Sync service to be initialized. | 233 // True iff we're waiting for the Sync service to be initialized. |
| 234 bool waiting_for_sync_initialization_; | 234 bool waiting_for_sync_initialization_; |
| 235 | 235 |
| 236 // Sets a profile in elevated state for testing if set to true. | 236 // Sets a profile in elevated state for testing if set to true. |
| 237 bool elevated_for_testing_; | 237 bool elevated_for_testing_; |
| 238 | 238 |
| 239 URLFilterContext url_filter_context_; | 239 URLFilterContext url_filter_context_; |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ | 242 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ |
| OLD | NEW |