# Copyright 2015 The Chromium Authors
# 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")
cast_source_set("renderer") {
sources = [
"activity_filtering_websocket_handshake_throttle.cc",
"activity_filtering_websocket_handshake_throttle.h",
"assistant_bindings.cc",
"assistant_bindings.h",
"cast_activity_url_filter_manager.cc",
"cast_activity_url_filter_manager.h",
"cast_content_renderer_client.cc",
"cast_content_renderer_client.h",
"cast_content_settings_client.cc",
"cast_content_settings_client.h",
"cast_demo_bindings.cc",
"cast_demo_bindings.h",
"cast_url_loader_throttle_provider.cc",
"cast_url_loader_throttle_provider.h",
"cast_websocket_handshake_throttle_provider.cc",
"cast_websocket_handshake_throttle_provider.h",
"cast_window_manager_bindings.cc",
"cast_window_manager_bindings.h",
"feature_manager.cc",
"feature_manager.h",
"feature_manager_on_associated_interface.cc",
"feature_manager_on_associated_interface.h",
"native_bindings_helper.cc",
"native_bindings_helper.h",
"queryable_data_store.cc",
"queryable_data_store.h",
"settings_ui_bindings.cc",
"settings_ui_bindings.h",
]
public_deps = [
"//chromecast:chromecast_buildflags",
"//chromecast/browser/mojom",
"//chromecast/common/mojom",
"//components/cast_receiver/renderer",
"//components/url_rewrite/common",
"//content/public/renderer",
"//media",
"//mojo/public/cpp/bindings",
"//third_party/blink/public:blink",
"//v8",
]
deps = [
"//base",
"//chromecast/base",
"//chromecast/common",
"//chromecast/common:activity_url_filter",
"//chromecast/common:cors_exempt_headers",
"//chromecast/common:feature_constants",
"//chromecast/common:queryable_data",
"//chromecast/common/media",
"//chromecast/crash",
"//chromecast/media",
"//chromecast/media/base:media_codec_support",
"//chromecast/renderer/media",
"//components/cdm/renderer",
"//components/media_control/renderer",
"//components/network_hints/renderer",
"//components/on_load_script_injector/renderer",
"//components/url_rewrite/renderer",
"//content/public/common",
"//crypto",
"//gin",
"//ipc",
"//media/remoting:remoting_renderer",
"//net",
"//services/network/public/cpp:cpp",
"//services/service_manager/public/cpp",
]
if (!is_android) {
sources += [
"memory_pressure_observer_impl.cc",
"memory_pressure_observer_impl.h",
]
} else {
deps += [ "//chromecast/media/audio:cast_audio_device_factory" ]
}
}
cast_source_set("simple_client") {
sources = [ "cast_content_renderer_client_simple.cc" ]
public_deps = [
":renderer",
"//base",
]
}