mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
159 lines
5.6 KiB
Plaintext
159 lines
5.6 KiB
Plaintext
# 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("//extensions/buildflags/buildflags.gni")
|
|
import("//testing/test.gni")
|
|
|
|
static_library("router") {
|
|
deps = [
|
|
"//base",
|
|
"//chrome/common:constants",
|
|
"//components/keyed_service/content",
|
|
"//components/keyed_service/core",
|
|
"//content/public/browser",
|
|
"//content/public/common",
|
|
"//net",
|
|
"//third_party/icu",
|
|
"//url",
|
|
]
|
|
public_deps = [
|
|
"//chrome/common/media_router:router",
|
|
"//chrome/common/media_router/mojo:media_router",
|
|
]
|
|
sources = [
|
|
"issue_manager.cc",
|
|
"issue_manager.h",
|
|
"issues_observer.cc",
|
|
"issues_observer.h",
|
|
"media_router.h",
|
|
"media_router_base.cc",
|
|
"media_router_base.h",
|
|
"media_router_dialog_controller.cc",
|
|
"media_router_dialog_controller.h",
|
|
"media_router_factory.cc",
|
|
"media_router_factory.h",
|
|
"media_router_metrics.cc",
|
|
"media_router_metrics.h",
|
|
"media_routes_observer.cc",
|
|
"media_routes_observer.h",
|
|
"media_sinks_observer.cc",
|
|
"media_sinks_observer.h",
|
|
"presentation/browser_presentation_connection_proxy.cc",
|
|
"presentation/browser_presentation_connection_proxy.h",
|
|
"presentation/local_presentation_manager.cc",
|
|
"presentation/local_presentation_manager.h",
|
|
"presentation/local_presentation_manager_factory.cc",
|
|
"presentation/local_presentation_manager_factory.h",
|
|
"presentation/presentation_media_sinks_observer.cc",
|
|
"presentation/presentation_media_sinks_observer.h",
|
|
"presentation/presentation_service_delegate_impl.cc",
|
|
"presentation/presentation_service_delegate_impl.h",
|
|
"presentation/presentation_service_delegate_observers.cc",
|
|
"presentation/presentation_service_delegate_observers.h",
|
|
"presentation/receiver_presentation_service_delegate_impl.cc",
|
|
"presentation/receiver_presentation_service_delegate_impl.h",
|
|
"presentation/render_frame_host_id.h",
|
|
"route_message_observer.cc",
|
|
"route_message_observer.h",
|
|
]
|
|
|
|
if (enable_extensions) {
|
|
deps += [
|
|
"discovery",
|
|
"//extensions/browser",
|
|
"//mojo/public/cpp/bindings",
|
|
"//ui/base:ui_features",
|
|
]
|
|
sources += [
|
|
"event_page_request_manager.cc",
|
|
"event_page_request_manager.h",
|
|
"event_page_request_manager_factory.cc",
|
|
"event_page_request_manager_factory.h",
|
|
"mojo/media_route_controller.cc",
|
|
"mojo/media_route_controller.h",
|
|
"mojo/media_route_provider_util_win.cc",
|
|
"mojo/media_route_provider_util_win.h",
|
|
"mojo/media_router_desktop.cc",
|
|
"mojo/media_router_desktop.h",
|
|
"mojo/media_router_mojo_impl.cc",
|
|
"mojo/media_router_mojo_impl.h",
|
|
"mojo/media_router_mojo_metrics.cc",
|
|
"mojo/media_router_mojo_metrics.h",
|
|
"mojo/media_sink_service_status.cc",
|
|
"mojo/media_sink_service_status.h",
|
|
"presentation/independent_otr_profile_manager.cc",
|
|
"presentation/independent_otr_profile_manager.h",
|
|
"presentation/presentation_navigation_policy.cc",
|
|
"presentation/presentation_navigation_policy.h",
|
|
"providers/cast/cast_app_availability_tracker.cc",
|
|
"providers/cast/cast_app_availability_tracker.h",
|
|
"providers/cast/cast_app_discovery_service.cc",
|
|
"providers/cast/cast_app_discovery_service.h",
|
|
"providers/cast/cast_media_route_provider.cc",
|
|
"providers/cast/cast_media_route_provider.h",
|
|
"providers/cast/cast_media_route_provider_metrics.cc",
|
|
"providers/cast/cast_media_route_provider_metrics.h",
|
|
"providers/cast/chrome_cast_message_handler.cc",
|
|
"providers/cast/chrome_cast_message_handler.h",
|
|
"providers/cast/dual_media_sink_service.cc",
|
|
"providers/cast/dual_media_sink_service.h",
|
|
"providers/common/buffered_message_sender.cc",
|
|
"providers/common/buffered_message_sender.h",
|
|
"providers/dial/dial_activity_manager.cc",
|
|
"providers/dial/dial_activity_manager.h",
|
|
"providers/dial/dial_internal_message_util.cc",
|
|
"providers/dial/dial_internal_message_util.h",
|
|
"providers/dial/dial_media_route_provider.cc",
|
|
"providers/dial/dial_media_route_provider.h",
|
|
"providers/extension/extension_media_route_provider_proxy.cc",
|
|
"providers/extension/extension_media_route_provider_proxy.h",
|
|
"providers/wired_display/wired_display_media_route_provider.cc",
|
|
"providers/wired_display/wired_display_media_route_provider.h",
|
|
"providers/wired_display/wired_display_presentation_receiver.h",
|
|
"providers/wired_display/wired_display_presentation_receiver_factory.cc",
|
|
"providers/wired_display/wired_display_presentation_receiver_factory.h",
|
|
]
|
|
}
|
|
}
|
|
|
|
static_library("test_support") {
|
|
testonly = true
|
|
deps = [
|
|
"//chrome/test:test_support",
|
|
"//testing/gmock",
|
|
]
|
|
public_deps = [
|
|
":router",
|
|
]
|
|
sources = [
|
|
"test/mock_media_router.cc",
|
|
"test/mock_media_router.h",
|
|
"test/mock_screen_availability_listener.cc",
|
|
"test/mock_screen_availability_listener.h",
|
|
"test/test_helper.cc",
|
|
"test/test_helper.h",
|
|
]
|
|
|
|
if (enable_extensions) {
|
|
deps += [
|
|
"discovery",
|
|
"//chrome/common/media_router/mojo:media_router",
|
|
"//chrome/common/media_router/mojo:media_router_test_interfaces",
|
|
"//extensions/browser",
|
|
"//extensions/common",
|
|
]
|
|
sources += [
|
|
"test/media_router_mojo_test.cc",
|
|
"test/media_router_mojo_test.h",
|
|
"test/mock_dns_sd_registry.cc",
|
|
"test/mock_dns_sd_registry.h",
|
|
"test/mock_mojo_media_router.cc",
|
|
"test/mock_mojo_media_router.h",
|
|
"test/noop_dual_media_sink_service.cc",
|
|
"test/noop_dual_media_sink_service.h",
|
|
]
|
|
}
|
|
}
|