Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/crypto.gni") | 6 import("//build/config/crypto.gni") |
| 7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
| 8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
| 9 import("//build/split_static_library.gni") | 9 import("//build/split_static_library.gni") |
| 10 import("//chrome/common/features.gni") | 10 import("//chrome/common/features.gni") |
| 11 import("//components/offline_pages/features/features.gni") | |
| 11 import("//components/os_crypt/features.gni") | 12 import("//components/os_crypt/features.gni") |
| 12 import("//components/spellcheck/spellcheck_build_features.gni") | 13 import("//components/spellcheck/spellcheck_build_features.gni") |
| 13 import("//device/vr/features/features.gni") | 14 import("//device/vr/features/features.gni") |
| 14 import("//extensions/features/features.gni") | 15 import("//extensions/features/features.gni") |
| 15 import("//media/media_options.gni") | 16 import("//media/media_options.gni") |
| 16 import("//net/features.gni") | 17 import("//net/features.gni") |
| 17 import("//ppapi/features/features.gni") | 18 import("//ppapi/features/features.gni") |
| 18 import("//printing/features/features.gni") | 19 import("//printing/features/features.gni") |
| 19 import("//rlz/features/features.gni") | 20 import("//rlz/features/features.gni") |
| 20 import("//sandbox/features.gni") | 21 import("//sandbox/features.gni") |
| (...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1508 "//components/mime_util", | 1509 "//components/mime_util", |
| 1509 "//components/navigation_interception", | 1510 "//components/navigation_interception", |
| 1510 "//components/navigation_metrics", | 1511 "//components/navigation_metrics", |
| 1511 "//components/net_log", | 1512 "//components/net_log", |
| 1512 "//components/network_hints/common", | 1513 "//components/network_hints/common", |
| 1513 "//components/network_session_configurator", | 1514 "//components/network_session_configurator", |
| 1514 "//components/network_time", | 1515 "//components/network_time", |
| 1515 "//components/ntp_snippets", | 1516 "//components/ntp_snippets", |
| 1516 "//components/ntp_tiles", | 1517 "//components/ntp_tiles", |
| 1517 "//components/offline_items_collection/core", | 1518 "//components/offline_items_collection/core", |
| 1518 "//components/offline_pages/content", | 1519 "//components/offline_pages/features:features", |
| 1519 "//components/offline_pages/content/background_loader", | |
| 1520 "//components/offline_pages/core", | |
| 1521 "//components/offline_pages/core/background:background_offliner", | |
| 1522 "//components/offline_pages/core/downloads:offline_pages_ui_adapter", | |
| 1523 "//components/offline_pages/core/prefetch", | |
| 1524 "//components/offline_pages/core/recent_tabs", | |
| 1525 "//components/offline_pages/core/request_header:request_header", | |
| 1526 "//components/omnibox/browser", | 1520 "//components/omnibox/browser", |
| 1527 "//components/os_crypt", | 1521 "//components/os_crypt", |
| 1528 "//components/packed_ct_ev_whitelist", | 1522 "//components/packed_ct_ev_whitelist", |
| 1529 "//components/password_manager/content/browser", | 1523 "//components/password_manager/content/browser", |
| 1530 "//components/password_manager/core/browser", | 1524 "//components/password_manager/core/browser", |
| 1531 "//components/password_manager/core/common", | 1525 "//components/password_manager/core/common", |
| 1532 "//components/password_manager/sync/browser", | 1526 "//components/password_manager/sync/browser", |
| 1533 "//components/payments/mojom", | 1527 "//components/payments/mojom", |
| 1534 "//components/payments/mojom:mojom_payment_app", | 1528 "//components/payments/mojom:mojom_payment_app", |
| 1535 "//components/physical_web/eddystone", | 1529 "//components/physical_web/eddystone", |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2100 "renderer_host/pepper/pepper_platform_verification_message_filter.cc", | 2094 "renderer_host/pepper/pepper_platform_verification_message_filter.cc", |
| 2101 "renderer_host/pepper/pepper_platform_verification_message_filter.h", | 2095 "renderer_host/pepper/pepper_platform_verification_message_filter.h", |
| 2102 ] | 2096 ] |
| 2103 deps += [ | 2097 deps += [ |
| 2104 "//components/pdf/browser", | 2098 "//components/pdf/browser", |
| 2105 "//ppapi/features", | 2099 "//ppapi/features", |
| 2106 "//ppapi/proxy:ipc", | 2100 "//ppapi/proxy:ipc", |
| 2107 "//third_party/adobe/flash:flapper_version_h", | 2101 "//third_party/adobe/flash:flapper_version_h", |
| 2108 ] | 2102 ] |
| 2109 } | 2103 } |
| 2104 | |
| 2105 if (enable_offline_pages) { | |
| 2106 sources += [ | |
| 2107 "android/offline_pages/background_loader_offliner.cc", | |
|
dewittj
2017/05/11 17:03:40
I wonder if it makes sense to just have BUILD.gn i
Dmitry Titov
2017/05/11 17:35:04
Perhaps. However most of the sources in c/b are in
| |
| 2108 "android/offline_pages/background_loader_offliner.h", | |
| 2109 "android/offline_pages/background_scheduler_bridge.cc", | |
| 2110 "android/offline_pages/background_scheduler_bridge.h", | |
| 2111 "android/offline_pages/downloads/offline_page_download_bridge.cc", | |
| 2112 "android/offline_pages/downloads/offline_page_download_bridge.h", | |
| 2113 "android/offline_pages/downloads/offline_page_infobar_delegate.cc", | |
| 2114 "android/offline_pages/downloads/offline_page_infobar_delegate.h", | |
| 2115 "android/offline_pages/downloads/offline_page_notification_bridge.cc", | |
| 2116 "android/offline_pages/downloads/offline_page_notification_bridge.h", | |
| 2117 "android/offline_pages/downloads/resource_throttle.cc", | |
| 2118 "android/offline_pages/downloads/resource_throttle.h", | |
| 2119 "android/offline_pages/offline_page_bookmark_observer.cc", | |
| 2120 "android/offline_pages/offline_page_bookmark_observer.h", | |
| 2121 "android/offline_pages/offline_page_bridge.cc", | |
| 2122 "android/offline_pages/offline_page_bridge.h", | |
| 2123 "android/offline_pages/offline_page_info_handler.cc", | |
| 2124 "android/offline_pages/offline_page_info_handler.h", | |
| 2125 "android/offline_pages/offline_page_mhtml_archiver.cc", | |
| 2126 "android/offline_pages/offline_page_mhtml_archiver.h", | |
| 2127 "android/offline_pages/offline_page_model_factory.cc", | |
| 2128 "android/offline_pages/offline_page_model_factory.h", | |
| 2129 "android/offline_pages/offline_page_request_interceptor.cc", | |
| 2130 "android/offline_pages/offline_page_request_interceptor.h", | |
| 2131 "android/offline_pages/offline_page_request_job.cc", | |
| 2132 "android/offline_pages/offline_page_request_job.h", | |
| 2133 "android/offline_pages/offline_page_tab_helper.cc", | |
| 2134 "android/offline_pages/offline_page_tab_helper.h", | |
| 2135 "android/offline_pages/offline_page_utils.cc", | |
| 2136 "android/offline_pages/offline_page_utils.h", | |
| 2137 "android/offline_pages/offliner_helper.cc", | |
| 2138 "android/offline_pages/offliner_helper.h", | |
| 2139 "android/offline_pages/prefetch/prefetch_background_task.cc", | |
| 2140 "android/offline_pages/prefetch/prefetch_background_task.h", | |
| 2141 "android/offline_pages/prerender_adapter.cc", | |
| 2142 "android/offline_pages/prerender_adapter.h", | |
| 2143 "android/offline_pages/prerendering_loader.cc", | |
| 2144 "android/offline_pages/prerendering_loader.h", | |
| 2145 "android/offline_pages/prerendering_offliner.cc", | |
| 2146 "android/offline_pages/prerendering_offliner.h", | |
| 2147 "android/offline_pages/recent_tab_helper.cc", | |
| 2148 "android/offline_pages/recent_tab_helper.h", | |
| 2149 "android/offline_pages/request_coordinator_factory.cc", | |
| 2150 "android/offline_pages/request_coordinator_factory.h", | |
| 2151 ] | |
| 2152 deps += [ | |
| 2153 "//components/offline_pages/content", | |
| 2154 "//components/offline_pages/content/background_loader", | |
| 2155 "//components/offline_pages/core", | |
| 2156 "//components/offline_pages/core/background:background_offliner", | |
| 2157 "//components/offline_pages/core/downloads:offline_pages_ui_adapter", | |
| 2158 "//components/offline_pages/core/prefetch", | |
| 2159 "//components/offline_pages/core/recent_tabs", | |
| 2160 "//components/offline_pages/core/request_header:request_header", | |
| 2161 ] | |
| 2162 } | |
| 2163 | |
| 2164 # Used to build test harness locally. The harness is used manually to | |
| 2165 # produce multiple offline pages to evaluate quality of the snapshots. | |
| 2166 if (enable_offline_pages_harness) { | |
| 2167 sources += [ | |
| 2168 "android/offline_pages/evaluation/evaluation_test_scheduler.cc", | |
|
dewittj
2017/05/11 17:03:40
Are there no tests for these files? If there are t
Dmitry Titov
2017/05/11 17:35:04
I don't know if there are tests for these, and add
romax
2017/05/11 18:09:20
Unfortunately there's no test for these since they
| |
| 2169 "android/offline_pages/evaluation/evaluation_test_scheduler.h", | |
| 2170 "android/offline_pages/evaluation/offline_page_evaluation_bridge.cc", | |
| 2171 "android/offline_pages/evaluation/offline_page_evaluation_bridge.h", | |
| 2172 ] | |
| 2173 } | |
| 2174 | |
| 2110 if (safe_browsing_mode != 0) { | 2175 if (safe_browsing_mode != 0) { |
| 2111 # "Safe Browsing Basic" files used for safe browsing in full mode | 2176 # "Safe Browsing Basic" files used for safe browsing in full mode |
| 2112 # (safe_browsing=1) and mobile (=2) | 2177 # (safe_browsing=1) and mobile (=2) |
| 2113 sources += [ | 2178 sources += [ |
| 2114 "loader/data_reduction_proxy_resource_throttle_android.cc", | 2179 "loader/data_reduction_proxy_resource_throttle_android.cc", |
| 2115 "loader/data_reduction_proxy_resource_throttle_android.h", | 2180 "loader/data_reduction_proxy_resource_throttle_android.h", |
| 2116 "safe_browsing/certificate_reporting_metrics_provider.cc", | 2181 "safe_browsing/certificate_reporting_metrics_provider.cc", |
| 2117 "safe_browsing/certificate_reporting_metrics_provider.h", | 2182 "safe_browsing/certificate_reporting_metrics_provider.h", |
| 2118 "safe_browsing/certificate_reporting_service.cc", | 2183 "safe_browsing/certificate_reporting_service.cc", |
| 2119 "safe_browsing/certificate_reporting_service.h", | 2184 "safe_browsing/certificate_reporting_service.h", |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2861 "android/ntp/new_tab_page_url_handler.cc", | 2926 "android/ntp/new_tab_page_url_handler.cc", |
| 2862 "android/ntp/new_tab_page_url_handler.h", | 2927 "android/ntp/new_tab_page_url_handler.h", |
| 2863 "android/ntp/ntp_snippets_bridge.cc", | 2928 "android/ntp/ntp_snippets_bridge.cc", |
| 2864 "android/ntp/ntp_snippets_bridge.h", | 2929 "android/ntp/ntp_snippets_bridge.h", |
| 2865 "android/ntp/ntp_snippets_launcher.cc", | 2930 "android/ntp/ntp_snippets_launcher.cc", |
| 2866 "android/ntp/ntp_snippets_launcher.h", | 2931 "android/ntp/ntp_snippets_launcher.h", |
| 2867 "android/ntp/recent_tabs_page_prefs.cc", | 2932 "android/ntp/recent_tabs_page_prefs.cc", |
| 2868 "android/ntp/recent_tabs_page_prefs.h", | 2933 "android/ntp/recent_tabs_page_prefs.h", |
| 2869 "android/ntp/suggestions_event_reporter_bridge.cc", | 2934 "android/ntp/suggestions_event_reporter_bridge.cc", |
| 2870 "android/ntp/suggestions_event_reporter_bridge.h", | 2935 "android/ntp/suggestions_event_reporter_bridge.h", |
| 2871 "android/offline_pages/background_loader_offliner.cc", | |
| 2872 "android/offline_pages/background_loader_offliner.h", | |
| 2873 "android/offline_pages/background_scheduler_bridge.cc", | |
| 2874 "android/offline_pages/background_scheduler_bridge.h", | |
| 2875 "android/offline_pages/downloads/offline_page_download_bridge.cc", | |
| 2876 "android/offline_pages/downloads/offline_page_download_bridge.h", | |
| 2877 "android/offline_pages/downloads/offline_page_infobar_delegate.cc", | |
| 2878 "android/offline_pages/downloads/offline_page_infobar_delegate.h", | |
| 2879 "android/offline_pages/downloads/offline_page_notification_bridge.cc", | |
| 2880 "android/offline_pages/downloads/offline_page_notification_bridge.h", | |
| 2881 "android/offline_pages/downloads/resource_throttle.cc", | |
| 2882 "android/offline_pages/downloads/resource_throttle.h", | |
| 2883 "android/offline_pages/offline_page_bookmark_observer.cc", | |
| 2884 "android/offline_pages/offline_page_bookmark_observer.h", | |
| 2885 "android/offline_pages/offline_page_bridge.cc", | |
| 2886 "android/offline_pages/offline_page_bridge.h", | |
| 2887 "android/offline_pages/offline_page_info_handler.cc", | |
| 2888 "android/offline_pages/offline_page_info_handler.h", | |
| 2889 "android/offline_pages/offline_page_mhtml_archiver.cc", | |
| 2890 "android/offline_pages/offline_page_mhtml_archiver.h", | |
| 2891 "android/offline_pages/offline_page_model_factory.cc", | |
| 2892 "android/offline_pages/offline_page_model_factory.h", | |
| 2893 "android/offline_pages/offline_page_request_interceptor.cc", | |
| 2894 "android/offline_pages/offline_page_request_interceptor.h", | |
| 2895 "android/offline_pages/offline_page_request_job.cc", | |
| 2896 "android/offline_pages/offline_page_request_job.h", | |
| 2897 "android/offline_pages/offline_page_tab_helper.cc", | |
| 2898 "android/offline_pages/offline_page_tab_helper.h", | |
| 2899 "android/offline_pages/offline_page_utils.cc", | |
| 2900 "android/offline_pages/offline_page_utils.h", | |
| 2901 "android/offline_pages/offliner_helper.cc", | |
| 2902 "android/offline_pages/offliner_helper.h", | |
| 2903 "android/offline_pages/prefetch/prefetch_background_task.cc", | |
| 2904 "android/offline_pages/prefetch/prefetch_background_task.h", | |
| 2905 "android/offline_pages/prerender_adapter.cc", | |
| 2906 "android/offline_pages/prerender_adapter.h", | |
| 2907 "android/offline_pages/prerendering_loader.cc", | |
| 2908 "android/offline_pages/prerendering_loader.h", | |
| 2909 "android/offline_pages/prerendering_offliner.cc", | |
| 2910 "android/offline_pages/prerendering_offliner.h", | |
| 2911 "android/offline_pages/recent_tab_helper.cc", | |
| 2912 "android/offline_pages/recent_tab_helper.h", | |
| 2913 "android/offline_pages/request_coordinator_factory.cc", | |
| 2914 "android/offline_pages/request_coordinator_factory.h", | |
| 2915 "android/omnibox/answers_image_bridge.cc", | 2936 "android/omnibox/answers_image_bridge.cc", |
| 2916 "android/omnibox/answers_image_bridge.h", | 2937 "android/omnibox/answers_image_bridge.h", |
| 2917 "android/omnibox/autocomplete_controller_android.cc", | 2938 "android/omnibox/autocomplete_controller_android.cc", |
| 2918 "android/omnibox/autocomplete_controller_android.h", | 2939 "android/omnibox/autocomplete_controller_android.h", |
| 2919 "android/omnibox/omnibox_prerender.cc", | 2940 "android/omnibox/omnibox_prerender.cc", |
| 2920 "android/omnibox/omnibox_prerender.h", | 2941 "android/omnibox/omnibox_prerender.h", |
| 2921 "android/partner_browser_customizations.cc", | 2942 "android/partner_browser_customizations.cc", |
| 2922 "android/partner_browser_customizations.h", | 2943 "android/partner_browser_customizations.h", |
| 2923 "android/password_ui_view_android.cc", | 2944 "android/password_ui_view_android.cc", |
| 2924 "android/password_ui_view_android.h", | 2945 "android/password_ui_view_android.h", |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3197 } | 3218 } |
| 3198 | 3219 |
| 3199 if (enable_supervised_users) { | 3220 if (enable_supervised_users) { |
| 3200 sources += [ | 3221 sources += [ |
| 3201 "supervised_user/child_accounts/child_account_feedback_reporter_android. cc", | 3222 "supervised_user/child_accounts/child_account_feedback_reporter_android. cc", |
| 3202 "supervised_user/child_accounts/child_account_feedback_reporter_android. h", | 3223 "supervised_user/child_accounts/child_account_feedback_reporter_android. h", |
| 3203 "supervised_user/child_accounts/child_account_service_android.cc", | 3224 "supervised_user/child_accounts/child_account_service_android.cc", |
| 3204 "supervised_user/child_accounts/child_account_service_android.h", | 3225 "supervised_user/child_accounts/child_account_service_android.h", |
| 3205 ] | 3226 ] |
| 3206 } | 3227 } |
| 3207 | |
| 3208 # Used for testing only, should not be shipped to end users. | |
| 3209 if (!is_official_build) { | |
| 3210 sources += [ | |
| 3211 "android/offline_pages/evaluation/evaluation_test_scheduler.cc", | |
| 3212 "android/offline_pages/evaluation/evaluation_test_scheduler.h", | |
| 3213 "android/offline_pages/evaluation/offline_page_evaluation_bridge.cc", | |
| 3214 "android/offline_pages/evaluation/offline_page_evaluation_bridge.h", | |
| 3215 ] | |
| 3216 } | |
| 3217 } else { | 3228 } else { |
| 3218 # Non-Android. | 3229 # Non-Android. |
| 3219 sources += [ | 3230 sources += [ |
| 3220 "accessibility/invert_bubble_prefs.cc", | 3231 "accessibility/invert_bubble_prefs.cc", |
| 3221 "accessibility/invert_bubble_prefs.h", | 3232 "accessibility/invert_bubble_prefs.h", |
| 3222 "background/background_contents.cc", | 3233 "background/background_contents.cc", |
| 3223 "background/background_contents.h", | 3234 "background/background_contents.h", |
| 3224 "banners/app_banner_infobar_delegate_desktop.cc", | 3235 "banners/app_banner_infobar_delegate_desktop.cc", |
| 3225 "banners/app_banner_infobar_delegate_desktop.h", | 3236 "banners/app_banner_infobar_delegate_desktop.h", |
| 3226 "banners/app_banner_manager_desktop.cc", | 3237 "banners/app_banner_manager_desktop.cc", |
| (...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4700 "media/pepper_cdm_test_constants.cc", | 4711 "media/pepper_cdm_test_constants.cc", |
| 4701 "media/pepper_cdm_test_constants.h", | 4712 "media/pepper_cdm_test_constants.h", |
| 4702 ] | 4713 ] |
| 4703 } | 4714 } |
| 4704 } | 4715 } |
| 4705 | 4716 |
| 4706 service_manifest("preferences_forwarder_manifest") { | 4717 service_manifest("preferences_forwarder_manifest") { |
| 4707 name = "preferences_forwarder" | 4718 name = "preferences_forwarder" |
| 4708 source = "prefs/forwarder_manifest.json" | 4719 source = "prefs/forwarder_manifest.json" |
| 4709 } | 4720 } |
| OLD | NEW |