Fix invalid cast in AppCacheGroup::AddUpdateObserver.
[chromium-blink-merge.git] / components / content_settings / core / browser / BUILD.gn
blob6db040af37911d4e8b33858d4ba64fc7a9b3798f
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
3 # found in the LICENSE file.
5 static_library("browser") {
6   sources = [
7     "content_settings_binary_value_map.cc",
8     "content_settings_binary_value_map.h",
9     "content_settings_client.h",
10     "content_settings_default_provider.cc",
11     "content_settings_default_provider.h",
12     "content_settings_details.cc",
13     "content_settings_details.h",
14     "content_settings_observable_provider.cc",
15     "content_settings_observable_provider.h",
16     "content_settings_observer.h",
17     "content_settings_origin_identifier_value_map.cc",
18     "content_settings_origin_identifier_value_map.h",
19     "content_settings_policy_provider.cc",
20     "content_settings_policy_provider.h",
21     "content_settings_pref.cc",
22     "content_settings_pref.h",
23     "content_settings_pref_provider.cc",
24     "content_settings_pref_provider.h",
25     "content_settings_provider.h",
26     "content_settings_rule.cc",
27     "content_settings_rule.h",
28     "content_settings_usages_state.cc",
29     "content_settings_usages_state.h",
30     "content_settings_utils.cc",
31     "content_settings_utils.h",
32     "cookie_settings.cc",
33     "cookie_settings.h",
34     "host_content_settings_map.cc",
35     "host_content_settings_map.h",
36     "local_shared_objects_counter.h",
37     "plugins_field_trial.cc",
38     "plugins_field_trial.h",
39     "website_settings_info.cc",
40     "website_settings_info.h",
41     "website_settings_registry.cc",
42     "website_settings_registry.h",
43   ]
45   deps = [
46     "//base",
47     "//base:prefs",
48     "//components/content_settings/core/common",
49     "//components/plugins/common",
50     "//components/pref_registry:pref_registry",
51     "//net",
52     "//url",
53   ]
55   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
58 source_set("unit_tests") {
59   testonly = true
60   sources = [
61     "content_settings_mock_provider.cc",
62     "content_settings_mock_provider.h",
63     "content_settings_provider_unittest.cc",
64     "content_settings_rule_unittest.cc",
65     "content_settings_utils_unittest.cc",
66     "cookie_settings_unittest.cc",
67     "plugins_field_trial_unittest.cc",
68   ]
70   deps = [
71     ":browser",
72     "//base",
73     "//components/content_settings/core/common",
74     "//components/content_settings/core/test:test_support",
75     "//testing/gtest",
76     "//url",
77   ]