OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 import("//services/service_manager/public/service_manifest.gni") | 5 import("//services/service_manager/public/service_manifest.gni") |
6 | 6 |
7 group("network") { | 7 group("network") { |
8 visibility = [ "//content/*" ] # This is an internal content API. | 8 visibility = [ "//content/*" ] # This is an internal content API. |
9 | 9 |
10 if (is_component_build) { | 10 if (is_component_build) { |
11 public_deps = [ | 11 public_deps = [ |
12 "//content", | 12 "//content", |
13 ] | 13 ] |
14 } else { | 14 } else { |
15 public_deps = [ | 15 public_deps = [ |
16 ":network_sources", | 16 ":network_sources", |
17 ] | 17 ] |
18 } | 18 } |
19 } | 19 } |
20 | 20 |
21 source_set("network_sources") { | 21 source_set("network_sources") { |
22 # Depend on via ":network above. | 22 # Depend on via ":network above. |
23 visibility = [ | 23 visibility = [ |
24 ":network", | 24 ":network", |
25 "//content", # For the component build. | 25 "//content", # For the component build. |
26 "//content/app:*", | 26 "//content/app:*", |
| 27 "//content/public/network/*", |
27 "//content/utility:utility", | 28 "//content/utility:utility", |
28 ] | 29 ] |
29 | 30 |
30 sources = [ | 31 sources = [ |
31 "cache_url_loader.cc", | 32 "cache_url_loader.cc", |
32 "cache_url_loader.h", | 33 "cache_url_loader.h", |
33 "network_context.cc", | 34 "network_context.cc", |
34 "network_context.h", | 35 "network_context.h", |
35 "network_service.cc", | 36 "network_service_impl.cc", |
36 "network_service.h", | 37 "network_service_impl.h", |
37 "network_service_url_loader_factory_impl.cc", | 38 "network_service_url_loader_factory_impl.cc", |
38 "network_service_url_loader_factory_impl.h", | 39 "network_service_url_loader_factory_impl.h", |
39 "url_loader_impl.cc", | 40 "url_loader_impl.cc", |
40 "url_loader_impl.h", | 41 "url_loader_impl.h", |
41 ] | 42 ] |
42 | 43 |
43 configs += [ "//content:content_implementation" ] | 44 configs += [ "//content:content_implementation" ] |
44 | 45 |
45 deps = [ | 46 deps = [ |
46 "//base", | 47 "//base", |
47 "//components/network_session_configurator/common", | 48 "//components/network_session_configurator/common", |
48 "//content:export", | 49 "//content:export", |
49 "//content/common", | 50 "//content/common", |
50 "//content/common:mojo_bindings", | 51 "//content/common:mojo_bindings", |
51 "//content/public/common:common_sources", | 52 "//content/public/common:common_sources", |
52 "//mojo/public/cpp/bindings", | 53 "//mojo/public/cpp/bindings", |
53 "//net", | 54 "//net", |
54 "//services/service_manager/public/cpp", | 55 "//services/service_manager/public/cpp", |
55 "//services/service_manager/public/interfaces", | 56 "//services/service_manager/public/interfaces", |
56 ] | 57 ] |
57 } | 58 } |
58 | 59 |
59 service_manifest("manifest") { | 60 service_manifest("manifest") { |
60 name = "network" | 61 name = "network" |
61 source = "manifest.json" | 62 source = "manifest.json" |
62 } | 63 } |
OLD | NEW |