| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/policy/core/browser/url_blacklist_manager.h" | 5 #include "components/policy/core/browser/url_blacklist_manager.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/prefs/pref_service.h" | |
| 16 #include "base/sequenced_task_runner.h" | 15 #include "base/sequenced_task_runner.h" |
| 17 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
| 18 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
| 19 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/task_runner_util.h" | 19 #include "base/task_runner_util.h" |
| 21 #include "base/thread_task_runner_handle.h" | 20 #include "base/thread_task_runner_handle.h" |
| 22 #include "base/values.h" | 21 #include "base/values.h" |
| 23 #include "components/policy/core/common/policy_pref_names.h" | 22 #include "components/policy/core/common/policy_pref_names.h" |
| 24 #include "components/pref_registry/pref_registry_syncable.h" | 23 #include "components/pref_registry/pref_registry_syncable.h" |
| 24 #include "components/prefs/pref_service.h" |
| 25 #include "net/base/filename_util.h" | 25 #include "net/base/filename_util.h" |
| 26 #include "net/base/net_errors.h" | 26 #include "net/base/net_errors.h" |
| 27 #include "url/third_party/mozilla/url_parse.h" | 27 #include "url/third_party/mozilla/url_parse.h" |
| 28 #include "url/url_constants.h" | 28 #include "url/url_constants.h" |
| 29 | 29 |
| 30 using url_matcher::URLMatcher; | 30 using url_matcher::URLMatcher; |
| 31 using url_matcher::URLMatcherCondition; | 31 using url_matcher::URLMatcherCondition; |
| 32 using url_matcher::URLMatcherConditionFactory; | 32 using url_matcher::URLMatcherConditionFactory; |
| 33 using url_matcher::URLMatcherConditionSet; | 33 using url_matcher::URLMatcherConditionSet; |
| 34 using url_matcher::URLMatcherPortFilter; | 34 using url_matcher::URLMatcherPortFilter; |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 } | 504 } |
| 505 | 505 |
| 506 // static | 506 // static |
| 507 void URLBlacklistManager::RegisterProfilePrefs( | 507 void URLBlacklistManager::RegisterProfilePrefs( |
| 508 user_prefs::PrefRegistrySyncable* registry) { | 508 user_prefs::PrefRegistrySyncable* registry) { |
| 509 registry->RegisterListPref(policy_prefs::kUrlBlacklist); | 509 registry->RegisterListPref(policy_prefs::kUrlBlacklist); |
| 510 registry->RegisterListPref(policy_prefs::kUrlWhitelist); | 510 registry->RegisterListPref(policy_prefs::kUrlWhitelist); |
| 511 } | 511 } |
| 512 | 512 |
| 513 } // namespace policy | 513 } // namespace policy |
| OLD | NEW |