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
3 # found in the LICENSE file.
11 'target_name': 'ios_web_app',
12 'type': 'static_library',
19 '../../base/base.gyp:base',
20 '../../base/base.gyp:base_i18n',
21 '../../crypto/crypto.gyp:crypto',
22 '../../net/net.gyp:net',
23 '../../ui/base/ui_base.gyp:ui_base',
24 '../../ui/gfx/gfx.gyp:gfx',
25 '../../ui/gfx/gfx.gyp:gfx_geometry',
29 'app/web_main_loop.h',
30 'app/web_main_loop.mm',
31 'app/web_main_runner.h',
32 'app/web_main_runner.mm',
33 'public/app/web_main.h',
34 'public/app/web_main_delegate.h',
35 'public/app/web_main_parts.h',
36 'public/app/web_main_parts.mm',
39 # Note: any embedder using ios_web will for now need to include either
40 # ios_web_thread (any new embedder) or ios_web_content_thread_shim (Chrome).
41 # This will become unnecessary once Chrome switches to using ios_web_thread,
42 # at which point that will be folded into this target.
44 'target_name': 'ios_web',
45 'type': 'static_library',
53 '../../base/base.gyp:base',
54 '../../content/content.gyp:content_browser',
55 '../../ios/net/ios_net.gyp:ios_net',
56 '../../ios/third_party/blink/blink_html_tokenizer.gyp:blink_html_tokenizer',
57 '../../net/net.gyp:net',
58 '../../ui/base/ui_base.gyp:ui_base',
59 '../../ui/gfx/gfx.gyp:gfx',
60 '../../ui/gfx/gfx.gyp:gfx_geometry',
61 '../../ui/resources/ui_resources.gyp:ui_resources',
62 '../../url/url.gyp:url_lib',
65 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/grit/webui_resources_map.cc',
66 'active_state_manager_impl.h',
67 'active_state_manager_impl.mm',
68 'alloc_with_zone_interceptor.h',
69 'alloc_with_zone_interceptor.mm',
71 'browsing_data_managers/crw_browsing_data_manager.h',
72 'browsing_data_managers/crw_cookie_browsing_data_manager.h',
73 'browsing_data_managers/crw_cookie_browsing_data_manager.mm',
74 'browser_url_rewriter_impl.cc',
75 'browser_url_rewriter_impl.h',
76 'browsing_data_partition_impl.h',
77 'browsing_data_partition_impl.mm',
78 'crw_browsing_data_store.mm',
79 'interstitials/html_web_interstitial_impl.h',
80 'interstitials/html_web_interstitial_impl.mm',
81 'interstitials/native_web_interstitial_impl.h',
82 'interstitials/native_web_interstitial_impl.mm',
83 'interstitials/web_interstitial_facade_delegate.h',
84 'interstitials/web_interstitial_impl.h',
85 'interstitials/web_interstitial_impl.mm',
86 'load_committed_details.cc',
87 'navigation/crw_session_certificate_policy_manager.h',
88 'navigation/crw_session_certificate_policy_manager.mm',
89 'navigation/crw_session_controller+private_constructors.h',
90 'navigation/crw_session_controller.h',
91 'navigation/crw_session_controller.mm',
92 'navigation/crw_session_entry.h',
93 'navigation/crw_session_entry.mm',
94 'navigation/navigation_item_facade_delegate.h',
95 'navigation/navigation_item_impl.h',
96 'navigation/navigation_item_impl.mm',
97 'navigation/navigation_manager_delegate.h',
98 'navigation/navigation_manager_facade_delegate.h',
99 'navigation/navigation_manager_impl.h',
100 'navigation/navigation_manager_impl.mm',
101 'navigation/nscoder_util.h',
102 'navigation/nscoder_util.mm',
103 'navigation/time_smoother.cc',
104 'navigation/time_smoother.h',
105 'navigation/web_load_params.h',
106 'navigation/web_load_params.mm',
107 'net/cert_policy.cc',
108 'net/cert_store_impl.cc',
109 'net/cert_store_impl.h',
110 'net/certificate_policy_cache.cc',
111 'net/clients/crw_csp_network_client.h',
112 'net/clients/crw_csp_network_client.mm',
113 'net/clients/crw_js_injection_network_client.h',
114 'net/clients/crw_js_injection_network_client.mm',
115 'net/clients/crw_js_injection_network_client_factory.h',
116 'net/clients/crw_js_injection_network_client_factory.mm',
117 'net/clients/crw_passkit_delegate.h',
118 'net/clients/crw_passkit_network_client.h',
119 'net/clients/crw_passkit_network_client.mm',
120 'net/clients/crw_passkit_network_client_factory.h',
121 'net/clients/crw_passkit_network_client_factory.mm',
122 'net/clients/crw_redirect_network_client.h',
123 'net/clients/crw_redirect_network_client.mm',
124 'net/clients/crw_redirect_network_client_factory.h',
125 'net/clients/crw_redirect_network_client_factory.mm',
126 'net/cookie_notification_bridge.h',
127 'net/cookie_notification_bridge.mm',
128 'net/crw_request_tracker_delegate.h',
129 'net/crw_url_verifying_protocol_handler.h',
130 'net/crw_url_verifying_protocol_handler.mm',
131 'net/request_group_util.h',
132 'net/request_group_util.mm',
133 'net/request_tracker_data_memoizing_store.h',
134 'net/request_tracker_factory_impl.h',
135 'net/request_tracker_factory_impl.mm',
136 'net/request_tracker_impl.h',
137 'net/request_tracker_impl.mm',
138 'net/web_http_protocol_handler_delegate.h',
139 'net/web_http_protocol_handler_delegate.mm',
140 'public/active_state_manager.h',
141 'public/block_types.h',
142 'public/browser_state.h',
143 'public/browser_url_rewriter.h',
144 'public/browsing_data_partition.h',
145 'public/crw_browsing_data_store.h',
146 'public/cert_policy.h',
147 'public/cert_store.h',
148 'public/certificate_policy_cache.h',
149 'public/crw_browsing_data_store.h',
150 'public/favicon_status.cc',
151 'public/favicon_status.h',
152 'public/favicon_url.cc',
153 'public/favicon_url.h',
154 'public/interstitials/web_interstitial.h',
155 'public/interstitials/web_interstitial_delegate.h',
156 'public/load_committed_details.h',
157 'public/navigation_item.h',
158 'public/navigation_manager.h',
160 'public/referrer_util.cc',
161 'public/referrer_util.h',
162 'public/security_style.h',
163 'public/ssl_status.cc',
164 'public/ssl_status.h',
165 'public/string_util.h',
166 'public/url_scheme_util.h',
168 'public/user_agent.h',
169 'public/user_agent.mm',
170 'public/user_metrics.h',
171 'public/web/url_data_source_ios.h',
172 'public/web_client.h',
173 'public/web_client.mm',
174 'public/web_controller_factory.h',
175 'public/web_controller_factory.mm',
176 'public/web_state/credential.h',
177 'public/web_state/crw_native_content.h',
178 'public/web_state/crw_native_content_provider.h',
179 'public/web_state/crw_web_controller_observer.h',
180 'public/web_state/crw_web_delegate.h',
181 'public/web_state/crw_web_user_interface_delegate.h',
182 'public/web_state/crw_web_view_proxy.h',
183 'public/web_state/crw_web_view_scroll_view_proxy.h',
184 'public/web_state/js/crw_js_injection_evaluator.h',
185 'public/web_state/js/crw_js_injection_manager.h',
186 'public/web_state/js/crw_js_injection_receiver.h',
187 'public/web_state/page_scroll_state.h',
188 'public/web_state/page_scroll_state.mm',
189 'public/web_state/url_verification_constants.h',
190 'public/web_state/web_state.h',
191 'public/web_state/web_state_observer.h',
192 'public/web_state/web_state_observer_bridge.h',
193 'public/web_state/web_state_user_data.h',
194 'public/web_thread.h',
195 'public/web_thread_delegate.h',
196 'public/web_ui_ios_data_source.h',
197 'public/web_view_type.h',
198 'public/web_view_util.h',
200 'ui_web_view_util.h',
201 'ui_web_view_util.mm',
202 'url_scheme_util.mm',
205 'weak_nsobject_counter.h',
206 'weak_nsobject_counter.mm',
207 'web_state/blocked_popup_info.h',
208 'web_state/blocked_popup_info.mm',
209 'web_state/credential.cc',
210 'web_state/crw_recurring_task_delegate.h',
211 'web_state/crw_web_view_proxy_impl.h',
212 'web_state/crw_web_view_proxy_impl.mm',
213 'web_state/crw_web_view_scroll_view_proxy.mm',
214 'web_state/error_translation_util.h',
215 'web_state/error_translation_util.mm',
216 'web_state/frame_info.h',
217 'web_state/js/credential_util.h',
218 'web_state/js/credential_util.mm',
219 'web_state/js/crw_js_early_script_manager.h',
220 'web_state/js/crw_js_early_script_manager.mm',
221 'web_state/js/crw_js_injection_manager.mm',
222 'web_state/js/crw_js_injection_receiver.mm',
223 'web_state/js/crw_js_invoke_parameter_queue.h',
224 'web_state/js/crw_js_invoke_parameter_queue.mm',
225 'web_state/js/crw_js_plugin_placeholder_manager.h',
226 'web_state/js/crw_js_plugin_placeholder_manager.mm',
227 'web_state/js/crw_js_window_id_manager.h',
228 'web_state/js/crw_js_window_id_manager.mm',
229 'web_state/js/page_script_util.h',
230 'web_state/js/page_script_util.mm',
231 'web_state/ui/crw_context_menu_provider.h',
232 'web_state/ui/crw_context_menu_provider.mm',
233 'web_state/ui/crw_debug_web_view.h',
234 'web_state/ui/crw_debug_web_view.mm',
235 'web_state/ui/crw_simple_web_view_controller.h',
236 'web_state/ui/crw_static_file_web_view.h',
237 'web_state/ui/crw_static_file_web_view.mm',
238 'web_state/ui/crw_swipe_recognizer_provider.h',
239 'web_state/ui/crw_touch_tracking_recognizer.h',
240 'web_state/ui/crw_touch_tracking_recognizer.mm',
241 'web_state/ui/crw_ui_simple_web_view_controller.h',
242 'web_state/ui/crw_ui_simple_web_view_controller.mm',
243 'web_state/ui/crw_ui_web_view_web_controller.h',
244 'web_state/ui/crw_ui_web_view_web_controller.mm',
245 'web_state/ui/crw_web_controller+protected.h',
246 'web_state/ui/crw_web_controller.h',
247 'web_state/ui/crw_web_controller.mm',
248 'web_state/ui/crw_web_controller_container_view.h',
249 'web_state/ui/crw_web_controller_container_view.mm',
250 'web_state/ui/crw_wk_simple_web_view_controller.h',
251 'web_state/ui/crw_wk_simple_web_view_controller.mm',
252 'web_state/ui/crw_wk_web_view_crash_detector.h',
253 'web_state/ui/crw_wk_web_view_crash_detector.mm',
254 'web_state/ui/crw_wk_web_view_web_controller.h',
255 'web_state/ui/crw_wk_web_view_web_controller.mm',
256 'web_state/ui/web_view_js_utils.h',
257 'web_state/ui/web_view_js_utils.mm',
258 'web_state/ui/wk_web_view_configuration_provider.h',
259 'web_state/ui/wk_web_view_configuration_provider.mm',
260 'web_state/web_controller_observer_bridge.h',
261 'web_state/web_controller_observer_bridge.mm',
262 'web_state/web_state.cc',
263 'web_state/web_state_facade_delegate.h',
264 'web_state/web_state_impl.h',
265 'web_state/web_state_impl.mm',
266 'web_state/web_state_observer.cc',
267 'web_state/web_state_observer_bridge.mm',
268 'web_state/web_view_creation_utils.h',
269 'web_state/web_view_creation_utils.mm',
270 'web_state/wk_web_view_ssl_error_util.h',
271 'web_state/wk_web_view_ssl_error_util.mm',
273 'webui/crw_web_ui_manager.h',
274 'webui/crw_web_ui_manager.mm',
275 'webui/crw_web_ui_page_builder.h',
276 'webui/crw_web_ui_page_builder.mm',
277 'webui/shared_resources_data_source_ios.cc',
278 'webui/shared_resources_data_source_ios.h',
279 'webui/url_data_manager_ios.cc',
280 'webui/url_data_manager_ios.h',
281 'webui/url_data_manager_ios_backend.cc',
282 'webui/url_data_manager_ios_backend.h',
283 'webui/url_data_source_ios.cc',
284 'webui/url_data_source_ios_impl.cc',
285 'webui/url_data_source_ios_impl.h',
286 'webui/url_fetcher_block_adapter.h',
287 'webui/url_fetcher_block_adapter.mm',
288 'webui/web_ui_ios_controller_factory_registry.cc',
289 'webui/web_ui_ios_controller_factory_registry.h',
290 'webui/web_ui_ios_data_source_impl.cc',
291 'webui/web_ui_ios_data_source_impl.h',
292 'webui/web_ui_ios_impl.h',
293 'webui/web_ui_ios_impl.mm',
298 '-weak_framework WebKit',
303 # Target that builds the actual WebThread implementation. This is a
304 # separate target since it can't yet be used by Chrome (see comment below).
306 'target_name': 'ios_web_thread',
307 'type': 'static_library',
309 '../../base/base.gyp:base',
310 '../../net/net.gyp:net',
317 'web_thread_impl.cc',
320 # Target that builds the files that shim WebThread functions to their
321 # corresponding content equivalents. This is a separate target since it
322 # is needed by Chrome, which still uses content startup (which creates
323 # content threads), but isn't used by web_shell.
325 'target_name': 'ios_web_content_thread_shim',
326 'type': 'static_library',
328 '../../base/base.gyp:base',
329 '../../content/content.gyp:content_browser',
335 'web_thread_adapter.h',
336 'web_thread_adapter.cc',
339 # Target shared by ios_web and CrNet.
341 'target_name': 'ios_web_core',
342 'type': 'static_library',
344 '../../base/base.gyp:base',
350 'crw_network_activity_indicator_manager.h',
351 'crw_network_activity_indicator_manager.mm',
352 'history_state_util.h',
353 'history_state_util.mm',
357 'target_name': 'ios_web_js_bundle_ui',
360 'closure_entry_point': '__crWeb.webBundle',
362 'web_state/js/resources/base.js',
363 'web_state/js/resources/common.js',
364 'web_state/js/resources/console.js',
365 'web_state/js/resources/core.js',
366 'web_state/js/resources/core_dynamic_ui.js',
367 'web_state/js/resources/dialog_overrides.js',
368 'web_state/js/resources/message.js',
369 'web_state/js/resources/message_dynamic_ui.js',
370 'web_state/js/resources/web_bundle_ui.js',
371 'web_state/js/resources/window_open_ui.js',
375 'web_state/js/resources/web_bundle_ui.js',
378 'mac_bundle_resources': [
379 '<(SHARED_INTERMEDIATE_DIR)/web_bundle_ui.js',
383 'js_compile_bundle.gypi'
387 'target_name': 'ios_web_js_bundle_wk',
390 'closure_entry_point': '__crWeb.webBundle',
392 'web_state/js/resources/base.js',
393 'web_state/js/resources/common.js',
394 'web_state/js/resources/console.js',
395 'web_state/js/resources/core.js',
396 'web_state/js/resources/core_dynamic_wk.js',
397 'web_state/js/resources/dialog_overrides.js',
398 'web_state/js/resources/message.js',
399 'web_state/js/resources/message_dynamic_wk.js',
400 'web_state/js/resources/web_bundle_wk.js',
401 'web_state/js/resources/window_open_wk.js',
405 'web_state/js/resources/web_bundle_wk.js',
408 'mac_bundle_resources': [
409 '<(SHARED_INTERMEDIATE_DIR)/web_bundle_wk.js',
413 'js_compile_bundle.gypi'
417 'target_name': 'js_resources',
420 'ios_web_js_bundle_ui',
421 'ios_web_js_bundle_wk',
424 'web_state/js/resources/plugin_placeholder.js',
425 'web_state/js/resources/window_id.js',
426 'webui/resources/web_ui.js',
429 'mac_bundle_resources': [
430 '<(SHARED_INTERMEDIATE_DIR)/plugin_placeholder.js',
431 '<(SHARED_INTERMEDIATE_DIR)/window_id.js',
432 '<(SHARED_INTERMEDIATE_DIR)/web_ui.js',
436 'js_compile_checked.gypi'
440 'target_name': 'test_support_ios_web',
441 'type': 'static_library',
444 'test_support_ios_web_without_threads',
450 'test/test_web_thread.cc',
451 'test/test_web_thread_bundle.cc',
455 'target_name': 'test_support_ios_web_with_content_thread_shim',
456 'type': 'static_library',
458 'ios_web_content_thread_shim',
459 'test_support_ios_web_without_threads',
465 'test/test_web_thread_adapter.cc',
466 'test/test_web_thread_bundle_adapter.cc',
469 # A test support target that does not include TestWebThread. This is
470 # separate because tests that rely on the the shim thread implementation
471 # can't use TestWebThread/TestWebThreadBundle.
472 # TODO(stuartmorgan): Fold this into test_support_ios_web once
473 # the WebThread-to-BrowserThread shim is gone.
475 'target_name': 'test_support_ios_web_without_threads',
476 'type': 'static_library',
479 '../../content/content_shell_and_tests.gyp:test_support_content',
480 '../../ios/testing/ios_testing.gyp:ocmock_support',
481 '../../ios/third_party/gcdwebserver/gcdwebserver.gyp:gcdwebserver',
482 '../../testing/gmock.gyp:gmock',
483 '../../testing/gtest.gyp:gtest',
484 '../../third_party/ocmock/ocmock.gyp:ocmock',
490 'public/test/crw_test_js_injection_receiver.h',
491 'public/test/crw_test_js_injection_receiver.mm',
492 'public/test/http_server.h',
493 'public/test/http_server.mm',
494 'public/test/js_test_util.h',
495 'public/test/js_test_util.mm',
496 'public/test/response_providers/data_response_provider.h',
497 'public/test/response_providers/data_response_provider.mm',
498 'public/test/response_providers/file_based_response_provider.h',
499 'public/test/response_providers/file_based_response_provider.mm',
500 'public/test/response_providers/file_based_response_provider_impl.cc',
501 'public/test/response_providers/file_based_response_provider_impl.h',
502 'public/test/response_providers/response_provider.cc',
503 'public/test/response_providers/response_provider.h',
504 'public/test/test_browser_state.cc',
505 'public/test/test_browser_state.h',
506 'public/test/test_web_client.h',
507 'public/test/test_web_client.mm',
508 'public/test/test_web_state.cc',
509 'public/test/test_web_state.h',
510 'public/test/test_web_thread.h',
511 'public/test/test_web_thread_bundle.h',
512 'public/test/web_test_util.h',
513 'test/crw_fake_web_controller_observer.h',
514 'test/crw_fake_web_controller_observer.mm',
517 'test/web_test_suite.cc',
518 'test/web_test_suite.h',
519 'test/wk_web_view_crash_utils.h',
520 'test/wk_web_view_crash_utils.mm',
524 'target_name': 'user_agent',
525 'type': 'static_library',
530 '../../base/base.gyp:base'
533 'public/user_agent.h',
534 'public/user_agent.mm',