1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//chromecast/chromecast.gni")
import("//tools/grit/grit_rule.gni")
grit("extensions_resources") {
source = "resources/extensions_renderer_resources.grd"
output_dir = "$root_gen_dir/chromecast/renderer"
output_name = "extensions_renderer_resources"
outputs = [
"grit/extensions_renderer_resources.h",
"extensions_renderer_resources.pak",
]
grit_flags = [
"-E",
"mojom_root=" + rebase_path(root_gen_dir, root_build_dir),
]
deps = [
"//services/network/public/mojom:mojom_js",
"//url/mojom:url_mojom_gurl_js",
"//url/mojom:url_mojom_origin_js",
]
}
cast_source_set("renderer") {
sources = [
"cast_content_renderer_client.cc",
"cast_content_renderer_client.h",
"cast_media_playback_options.cc",
"cast_media_playback_options.h",
"cast_url_loader_throttle_provider.cc",
"cast_url_loader_throttle_provider.h",
"native_bindings_helper.cc",
"native_bindings_helper.h",
"on_load_script_injector.cc",
"on_load_script_injector.h",
"queryable_data_bindings.cc",
"queryable_data_bindings.h",
"queryable_data_store.cc",
"queryable_data_store.h",
]
public_deps = [
"//chromecast/renderer/media",
]
if (chromecast_branding == "public") {
sources += [ "cast_content_renderer_client_simple.cc" ]
}
deps = [
"//base",
"//chromecast:chromecast_buildflags",
"//chromecast/base",
"//chromecast/common",
"//chromecast/common:queryable_data",
"//chromecast/common/media",
"//chromecast/common/mojom",
"//chromecast/media",
"//components/network_hints/renderer",
"//content/public/common",
"//content/public/renderer",
"//crypto",
"//gin",
"//ipc",
"//media",
"//services/network/public/cpp:cpp",
"//services/service_manager/public/cpp",
"//v8",
]
if (!is_fuchsia) {
# TODO(crbug.com/753619): Enable crash reporting on Fuchsia.
deps += [ "//chromecast/crash" ]
}
if (!is_android) {
sources += [
"memory_pressure_observer_impl.cc",
"memory_pressure_observer_impl.h",
]
deps += [
"//chromecast/common/mojom",
"//mojo/public/cpp/bindings",
]
} else {
deps += [ "//chromecast/media/audio:cast_audio_device_factory" ]
}
if (enable_chromecast_extensions) {
sources += [
"cast_extensions_dispatcher_delegate.cc",
"cast_extensions_dispatcher_delegate.h",
"cast_extensions_renderer_client.cc",
"cast_extensions_renderer_client.h",
"extensions/extension_hooks_delegate.cc",
"extensions/extension_hooks_delegate.h",
"extensions/tabs_hooks_delegate.cc",
"extensions/tabs_hooks_delegate.h",
]
deps += [
"//chromecast/common",
"//chromecast/common/extensions_api:api",
"//chromecast/renderer:extensions_resources",
"//components/version_info:version_info",
"//extensions/common",
"//extensions/common/api",
"//extensions/renderer",
"//gin:gin",
]
}
}
|