| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void GetCategoryNames(CategoryList* list); | 81 void GetCategoryNames(CategoryList* list); |
| 82 | 82 |
| 83 // Adds an access request for the given URL. The requests are stored using | 83 // Adds an access request for the given URL. The requests are stored using |
| 84 // a prefix followed by a URIEncoded version of the URL. Each entry contains | 84 // a prefix followed by a URIEncoded version of the URL. Each entry contains |
| 85 // a dictionary which currently has the timestamp of the request in it. | 85 // a dictionary which currently has the timestamp of the request in it. |
| 86 void AddAccessRequest(const GURL& url); | 86 void AddAccessRequest(const GURL& url); |
| 87 | 87 |
| 88 // Returns the email address of the custodian. | 88 // Returns the email address of the custodian. |
| 89 std::string GetCustodianEmailAddress() const; | 89 std::string GetCustodianEmailAddress() const; |
| 90 | 90 |
| 91 // Returns the name of the custodian, or the email address if the name is |
| 92 // empty. |
| 93 std::string GetCustodianName() const; |
| 94 |
| 91 // These methods allow querying and modifying the manual filtering behavior. | 95 // These methods allow querying and modifying the manual filtering behavior. |
| 92 // The manual behavior is set by the user and overrides all other settings | 96 // The manual behavior is set by the user and overrides all other settings |
| 93 // (whitelists or the default behavior). | 97 // (whitelists or the default behavior). |
| 94 | 98 |
| 95 // Returns the manual behavior for the given host. | 99 // Returns the manual behavior for the given host. |
| 96 ManualBehavior GetManualBehaviorForHost(const std::string& hostname); | 100 ManualBehavior GetManualBehaviorForHost(const std::string& hostname); |
| 97 | 101 |
| 98 // Returns the manual behavior for the given URL. | 102 // Returns the manual behavior for the given URL. |
| 99 ManualBehavior GetManualBehaviorForURL(const GURL& url); | 103 ManualBehavior GetManualBehaviorForURL(const GURL& url); |
| 100 | 104 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 content::NotificationRegistrar registrar_; | 217 content::NotificationRegistrar registrar_; |
| 214 PrefChangeRegistrar pref_change_registrar_; | 218 PrefChangeRegistrar pref_change_registrar_; |
| 215 | 219 |
| 216 // Sets a profile in elevated state for testing if set to true. | 220 // Sets a profile in elevated state for testing if set to true. |
| 217 bool elevated_for_testing_; | 221 bool elevated_for_testing_; |
| 218 | 222 |
| 219 URLFilterContext url_filter_context_; | 223 URLFilterContext url_filter_context_; |
| 220 }; | 224 }; |
| 221 | 225 |
| 222 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ | 226 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SERVICE_H_ |
| OLD | NEW |