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