# Copyright 2017 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("//build/buildflag_header.gni") import("//ios/build/config.gni") import("//ios/features.gni") buildflag_header("block_universal_links_buildflags") { header = "block_universal_links_buildflags.h" flags = [ "BLOCK_UNIVERSAL_LINKS_IN_OFF_THE_RECORD_MODE=$block_universal_links_in_off_the_record_mode" ] } source_set("navigation") { deps = [ ":block_universal_links_buildflags", ":core", ":navigation_manager_util", "//base", "//components/shared_highlighting/core/common", "//ios/net", "//ios/web:core", "//ios/web/common", "//ios/web/js_messaging", "//ios/web/navigation:wk_navigation_util", "//ios/web/public", "//ios/web/public/deprecated:deprecated_navigation_util", "//ios/web/public/download", "//ios/web/public/js_messaging", "//ios/web/public/security", "//ios/web/public/session", "//ios/web/security", "//ios/web/session", "//ios/web/web_state:user_interaction", "//ios/web/web_state:web_state_impl_header", "//ios/web/web_state/ui:crw_web_view_navigation_proxy", "//ios/web/web_state/ui:web_view_handler", "//ios/web/web_view:util", "//net", "//services/metrics/public/cpp:metrics_cpp", "//ui/base", "//url", ] sources = [ "crw_js_navigation_handler.h", "crw_js_navigation_handler.mm", "crw_navigation_item_holder.h", "crw_navigation_item_holder.mm", "crw_pending_navigation_info.h", "crw_pending_navigation_info.mm", "crw_text_fragments_handler.h", "crw_text_fragments_handler.mm", "crw_web_view_navigation_observer.h", "crw_web_view_navigation_observer.mm", "crw_web_view_navigation_observer_delegate.h", "crw_wk_navigation_handler.h", "crw_wk_navigation_handler.mm", "crw_wk_navigation_states.h", "crw_wk_navigation_states.mm", "navigation_item_impl_list.h", "navigation_item_impl_list.mm", "navigation_item_storage_builder.h", "navigation_item_storage_builder.mm", "serializable_user_data_manager_impl.h", "serializable_user_data_manager_impl.mm", "session_storage_builder.h", "session_storage_builder.mm", "time_smoother.cc", "time_smoother.h", "url_schemes.mm", "web_kit_constants.cc", "web_kit_constants.h", "wk_back_forward_list_item_holder.h", "wk_back_forward_list_item_holder.mm", "wk_based_navigation_manager_impl.h", "wk_based_navigation_manager_impl.mm", "wk_navigation_action_policy_util.h", "wk_navigation_action_policy_util.mm", "wk_navigation_action_util.h", "wk_navigation_action_util.mm", ] configs += [ "//build/config/compiler:enable_arc" ] } source_set("core") { deps = [ "//base", "//components/url_formatter:url_formatter", "//ios/web/common:features", "//ios/web/common:user_agent", "//ios/web/navigation:wk_navigation_util", "//ios/web/public", "//ios/web/public/deprecated:deprecated_navigation_util", "//ios/web/public/security", "//ui/base", ] sources = [ "error_page_helper.h", "error_page_helper.mm", "error_retry_state_machine.h", "error_retry_state_machine.mm", "navigation_context_impl.h", "navigation_context_impl.mm", "navigation_item_impl.h", "navigation_item_impl.mm", "navigation_manager_delegate.h", "navigation_manager_impl.h", "navigation_manager_impl.mm", ] configs += [ "//build/config/compiler:enable_arc" ] } source_set("wk_navigation_util") { deps = [ "//base", "//ios/web/common", "//ios/web/public", "//url", ] sources = [ "nscoder_util.h", "nscoder_util.mm", "wk_navigation_util.h", "wk_navigation_util.mm", ] configs += [ "//build/config/compiler:enable_arc" ] } source_set("navigation_manager_util") { deps = [ "//base", "//ios/web/navigation:core", "//ios/web/public", ] sources = [ "navigation_manager_util.h", "navigation_manager_util.mm", ] configs += [ "//build/config/compiler:enable_arc" ] }