tree: fbff9adcc26787f577d4ffdeffcf7fe201bfec50 [path history] [tgz]
  1. input/
  2. media/
  3. navigation_transitions/
  4. p2p/
  5. pepper/
  6. accessibility_object_lifetime_win_browsertest.cc
  7. accessibility_tree_linkage_win_browsertest.cc
  8. agent_scheduling_group_host.cc
  9. agent_scheduling_group_host.h
  10. agent_scheduling_group_host_factory.h
  11. ancestor_throttle.cc
  12. ancestor_throttle.h
  13. ancestor_throttle_browsertest.cc
  14. ancestor_throttle_unittest.cc
  15. back_forward_cache_can_store_document_result.cc
  16. back_forward_cache_can_store_document_result.h
  17. back_forward_cache_commit_deferring_condition.cc
  18. back_forward_cache_commit_deferring_condition.h
  19. back_forward_cache_disable.cc
  20. back_forward_cache_disable.h
  21. back_forward_cache_impl.cc
  22. back_forward_cache_impl.h
  23. back_forward_cache_impl_unittest.cc
  24. back_forward_cache_metrics.cc
  25. back_forward_cache_metrics.h
  26. back_forward_cache_metrics_browsertest.cc
  27. back_forward_cache_metrics_unittest.cc
  28. back_forward_cache_subframe_navigation_throttle.cc
  29. back_forward_cache_subframe_navigation_throttle.h
  30. back_forward_cache_subframe_navigation_throttle_unittest.cc
  31. batched_proxy_ipc_sender.cc
  32. batched_proxy_ipc_sender.h
  33. blocked_scheme_navigation_browsertest.cc
  34. blocked_scheme_navigation_throttle.cc
  35. blocked_scheme_navigation_throttle.h
  36. browser_compositor_ios.h
  37. browser_compositor_ios.mm
  38. browser_compositor_view_mac.h
  39. browser_compositor_view_mac.mm
  40. browsing_context_group_swap.cc
  41. browsing_context_group_swap.h
  42. browsing_context_group_swap_browsertest.cc
  43. browsing_context_group_swap_unittest.cc
  44. browsing_context_state.cc
  45. browsing_context_state.h
  46. clipboard_host_impl.cc
  47. clipboard_host_impl.h
  48. clipboard_host_impl_browsertest.cc
  49. clipboard_host_impl_mac.mm
  50. clipboard_host_impl_unittest.cc
  51. code_cache_host_impl.cc
  52. code_cache_host_impl.h
  53. commit_deferring_condition_runner.cc
  54. commit_deferring_condition_runner.h
  55. commit_deferring_condition_runner_unittest.cc
  56. compositor_dependencies_android.cc
  57. compositor_dependencies_android.h
  58. compositor_impl_android.cc
  59. compositor_impl_android.h
  60. compositor_impl_android_browsertest.cc
  61. concurrent_navigations_commit_deferring_condition.cc
  62. concurrent_navigations_commit_deferring_condition.h
  63. cookie_browsertest.cc
  64. cookie_utils.cc
  65. cookie_utils.h
  66. cross_process_frame_connector.cc
  67. cross_process_frame_connector.h
  68. cursor_manager.cc
  69. cursor_manager.h
  70. cursor_manager_unittest.cc
  71. data_transfer_util.cc
  72. data_transfer_util.h
  73. debug_urls.cc
  74. debug_urls.h
  75. delegated_frame_host.cc
  76. delegated_frame_host.h
  77. delegated_frame_host_client_android.cc
  78. delegated_frame_host_client_android.h
  79. delegated_frame_host_client_aura.cc
  80. delegated_frame_host_client_aura.h
  81. delegated_frame_host_client_ios.cc
  82. delegated_frame_host_client_ios.h
  83. DEPS
  84. dip_util.cc
  85. dip_util.h
  86. DIR_METADATA
  87. direct_manipulation_event_handler_win.cc
  88. direct_manipulation_event_handler_win.h
  89. direct_manipulation_helper_win.cc
  90. direct_manipulation_helper_win.h
  91. direct_manipulation_test_helper_win.cc
  92. direct_manipulation_test_helper_win.h
  93. direct_manipulation_win_browsertest.cc
  94. direct_manipulation_win_unittest.cc
  95. display_feature.cc
  96. display_feature.h
  97. display_feature_unittest.cc
  98. document_associated_data.cc
  99. document_associated_data.h
  100. document_service_browsertest.cc
  101. document_service_echo_impl.cc
  102. document_service_echo_impl.h
  103. document_service_unittest.cc
  104. document_token_browsertest.cc
  105. document_user_data_browsertest.cc
  106. dwrite_font_file_util_win.cc
  107. dwrite_font_file_util_win.h
  108. dwrite_font_proxy_impl_win.cc
  109. dwrite_font_proxy_impl_win.h
  110. dwrite_font_proxy_impl_win_unittest.cc
  111. early_swap_navigation_browsertest.cc
  112. embedded_frame_sink_impl.cc
  113. embedded_frame_sink_impl.h
  114. embedded_frame_sink_provider_impl.cc
  115. embedded_frame_sink_provider_impl.h
  116. embedded_frame_sink_provider_impl_unittest.cc
  117. embedding_token_browsertest.cc
  118. file_utilities_host_impl.cc
  119. file_utilities_host_impl.h
  120. frame_navigation_entry.cc
  121. frame_navigation_entry.h
  122. frame_token_message_queue.cc
  123. frame_token_message_queue.h
  124. frame_token_message_queue_unittest.cc
  125. frame_tree.cc
  126. frame_tree.h
  127. frame_tree_browsertest.cc
  128. frame_tree_node.cc
  129. frame_tree_node.h
  130. frame_tree_unittest.cc
  131. global_routing_id.cc
  132. http_error_navigation_throttle.cc
  133. http_error_navigation_throttle.h
  134. indexed_db_client_state_checker_factory.cc
  135. indexed_db_client_state_checker_factory.h
  136. indexed_db_client_state_checker_factory_unittest.cc
  137. ipc_utils.cc
  138. ipc_utils.h
  139. isolated_web_app_throttle.cc
  140. isolated_web_app_throttle.h
  141. isolated_web_app_throttle_browsertest.cc
  142. isolated_web_app_throttle_unittest.cc
  143. keep_alive_handle_factory.cc
  144. keep_alive_handle_factory.h
  145. legacy_render_widget_host_win.cc
  146. legacy_render_widget_host_win.h
  147. loading_state.h
  148. mixed_content_checker.cc
  149. mixed_content_checker.h
  150. mixed_content_checker_unittest.cc
  151. mixed_content_navigation_throttle.cc
  152. mixed_content_navigation_throttle.h
  153. mixed_content_navigation_throttle_unittest.cc
  154. mock_render_widget_host.cc
  155. mock_render_widget_host.h
  156. navigation_controller_android.cc
  157. navigation_controller_android.h
  158. navigation_controller_delegate.h
  159. navigation_controller_history_intervention_browsertest.cc
  160. navigation_controller_impl.cc
  161. navigation_controller_impl.h
  162. navigation_controller_impl_browsertest.cc
  163. navigation_controller_impl_unittest.cc
  164. navigation_discard_reason.h
  165. navigation_entry_impl.cc
  166. navigation_entry_impl.h
  167. navigation_entry_impl_unittest.cc
  168. navigation_entry_restore_context_impl.cc
  169. navigation_entry_restore_context_impl.h
  170. navigation_handle_user_data_browsertest.cc
  171. navigation_metrics_utils.cc
  172. navigation_metrics_utils.h
  173. navigation_policy_container_builder.cc
  174. navigation_policy_container_builder.h
  175. navigation_policy_container_builder_browsertest.cc
  176. navigation_policy_container_builder_unittest.cc
  177. navigation_request.cc
  178. navigation_request.h
  179. navigation_request_browsertest.cc
  180. navigation_request_info.cc
  181. navigation_request_info.h
  182. navigation_request_unittest.cc
  183. navigation_state_keep_alive.cc
  184. navigation_state_keep_alive.h
  185. navigation_throttle_runner.cc
  186. navigation_throttle_runner.h
  187. navigation_throttle_runner_unittest.cc
  188. navigation_type.h
  189. navigator.cc
  190. navigator.h
  191. navigator_delegate.h
  192. navigator_unittest.cc
  193. origin_agent_cluster_browsertest.cc
  194. origin_trial_state_host_impl.cc
  195. origin_trial_state_host_impl.h
  196. overscroll_configuration.cc
  197. overscroll_controller.cc
  198. overscroll_controller.h
  199. overscroll_controller_delegate.cc
  200. overscroll_controller_delegate.h
  201. overscroll_controller_unittest.cc
  202. OWNERS
  203. page_delegate.h
  204. page_factory.cc
  205. page_factory.h
  206. page_impl.cc
  207. page_impl.h
  208. page_impl_browsertest.cc
  209. page_lifecycle_state_manager.cc
  210. page_lifecycle_state_manager.h
  211. page_lifecycle_state_manager_browsertest.cc
  212. panel_rotation_browsertest.cc
  213. plugin_registry_impl.cc
  214. plugin_registry_impl.h
  215. policy_container_host.cc
  216. policy_container_host.h
  217. policy_container_host_browsertest.cc
  218. policy_container_host_unittest.cc
  219. popup_menu_helper_ios.h
  220. popup_menu_helper_ios.mm
  221. popup_menu_helper_mac.h
  222. popup_menu_helper_mac.mm
  223. popup_menu_interaction_delegate.h
  224. private_network_access_browsertest.cc
  225. private_network_access_util.cc
  226. private_network_access_util.h
  227. private_network_access_util_unittest.cc
  228. proactively_swap_browsing_instances_browsertest.cc
  229. README.md
  230. recently_destroyed_hosts.cc
  231. recently_destroyed_hosts.h
  232. recently_destroyed_hosts_unittest.cc
  233. render_document_host_browsertest.cc
  234. render_frame_host_android.cc
  235. render_frame_host_android.h
  236. render_frame_host_csp_context.cc
  237. render_frame_host_csp_context.h
  238. render_frame_host_csp_context_unittest.cc
  239. render_frame_host_delegate.cc
  240. render_frame_host_delegate.h
  241. render_frame_host_factory.cc
  242. render_frame_host_factory.h
  243. render_frame_host_impl.cc
  244. render_frame_host_impl.h
  245. render_frame_host_impl_browsertest.cc
  246. render_frame_host_impl_interface_binders.cc
  247. render_frame_host_impl_mac_browsertest.mm
  248. render_frame_host_impl_ppapi_support.cc
  249. render_frame_host_impl_ppapi_support.h
  250. render_frame_host_impl_unittest.cc
  251. render_frame_host_manager.cc
  252. render_frame_host_manager.h
  253. render_frame_host_manager_browsertest.cc
  254. render_frame_host_manager_browsertest.h
  255. render_frame_host_manager_unittest.cc
  256. render_frame_host_owner.h
  257. render_frame_host_permissions_policy_unittest.cc
  258. render_frame_metadata_provider_impl.cc
  259. render_frame_metadata_provider_impl.h
  260. render_frame_proxy_host.cc
  261. render_frame_proxy_host.h
  262. render_message_filter.cc
  263. render_message_filter.h
  264. render_process_host_browsertest.cc
  265. render_process_host_creation_observer.cc
  266. render_process_host_impl.cc
  267. render_process_host_impl.h
  268. render_process_host_internal_observer.cc
  269. render_process_host_internal_observer.h
  270. render_process_host_sandbox_policy_win_browsertest.cc
  271. render_process_host_unittest.cc
  272. render_view_host_browsertest.cc
  273. render_view_host_delegate.cc
  274. render_view_host_delegate.h
  275. render_view_host_delegate_view.cc
  276. render_view_host_delegate_view.h
  277. render_view_host_enums.h
  278. render_view_host_factory.cc
  279. render_view_host_factory.h
  280. render_view_host_impl.cc
  281. render_view_host_impl.h
  282. render_view_host_unittest.cc
  283. render_widget_helper.cc
  284. render_widget_helper.h
  285. render_widget_host_browsertest.cc
  286. render_widget_host_delegate.cc
  287. render_widget_host_delegate.h
  288. render_widget_host_factory.cc
  289. render_widget_host_factory.h
  290. render_widget_host_impl.cc
  291. render_widget_host_impl.h
  292. render_widget_host_input_event_router.cc
  293. render_widget_host_input_event_router.h
  294. render_widget_host_input_event_router_unittest.cc
  295. render_widget_host_owner_delegate.h
  296. render_widget_host_unittest.cc
  297. render_widget_host_view_android.cc
  298. render_widget_host_view_android.h
  299. render_widget_host_view_android_unittest.cc
  300. render_widget_host_view_aura.cc
  301. render_widget_host_view_aura.h
  302. render_widget_host_view_aura_browsertest.cc
  303. render_widget_host_view_aura_unittest.cc
  304. render_widget_host_view_aura_vk_browsertest.cc
  305. render_widget_host_view_base.cc
  306. render_widget_host_view_base.h
  307. render_widget_host_view_base_observer.cc
  308. render_widget_host_view_base_observer.h
  309. render_widget_host_view_base_unittest.cc
  310. render_widget_host_view_browsertest.cc
  311. render_widget_host_view_child_frame.cc
  312. render_widget_host_view_child_frame.h
  313. render_widget_host_view_child_frame_browsertest.cc
  314. render_widget_host_view_child_frame_unittest.cc
  315. render_widget_host_view_event_handler.cc
  316. render_widget_host_view_event_handler.h
  317. render_widget_host_view_input.h
  318. render_widget_host_view_ios.h
  319. render_widget_host_view_ios.mm
  320. render_widget_host_view_mac.h
  321. render_widget_host_view_mac.mm
  322. render_widget_host_view_mac_browsertest.mm
  323. render_widget_host_view_mac_editcommand_helper.h
  324. render_widget_host_view_mac_editcommand_helper.mm
  325. render_widget_host_view_mac_editcommand_helper_unittest.mm
  326. render_widget_host_view_mac_unittest.mm
  327. render_widget_targeter.cc
  328. render_widget_targeter.h
  329. renderer_cancellation_throttle.cc
  330. renderer_cancellation_throttle.h
  331. renderer_sandboxed_process_launcher_delegate.cc
  332. renderer_sandboxed_process_launcher_delegate.h
  333. renderer_sandboxed_process_launcher_delegate_unittest.cc
  334. sandbox_flags.md
  335. scoped_view_transition_resources.cc
  336. scoped_view_transition_resources.h
  337. screen_state.cc
  338. screen_state.h
  339. scroll_into_view_browsertest.cc
  340. sec_fetch_browsertest.cc
  341. should_swap_browsing_instance.h
  342. spare_render_process_host_manager.cc
  343. spare_render_process_host_manager.h
  344. spare_render_process_host_manager_browsertest.cc
  345. speculative_render_view_host_browsertest.cc
  346. stored_page.cc
  347. stored_page.h
  348. subframe_history_navigation_throttle.cc
  349. subframe_history_navigation_throttle.h
  350. system_entropy_utils.h
  351. test_render_widget_host_view_ios_factory.h
  352. test_render_widget_host_view_ios_factory.mm
  353. test_render_widget_host_view_mac_factory.h
  354. test_render_widget_host_view_mac_factory.mm
  355. text_input_client_mac.h
  356. text_input_client_mac.mm
  357. text_input_client_mac_unittest.mm
  358. text_input_host_impl.h
  359. text_input_host_impl.mm
  360. text_input_manager.cc
  361. text_input_manager.h
  362. transient_allow_popup.cc
  363. transient_allow_popup.h
  364. transient_allow_popup_unittest.cc
  365. transient_focus_source_user_activation.cc
  366. transient_focus_source_user_activation.h
  367. ui_events_helper.cc
  368. ui_events_helper.h
  369. unassigned_site_instance_browsertest.cc
  370. view_transition_browsertest.cc
  371. view_transition_commit_deferring_condition.cc
  372. view_transition_commit_deferring_condition.h
  373. view_transition_opt_in_state.cc
  374. view_transition_opt_in_state.h
  375. virtual_keyboard_controller_win.cc
  376. virtual_keyboard_controller_win.h
  377. visible_time_request_trigger.cc
  378. visible_time_request_trigger.h
  379. visible_time_request_trigger_unittest.cc
  380. web_menu_runner_ios.h
  381. web_menu_runner_ios.mm
content/browser/renderer_host/README.md

What is content/browser/renderer_host?

This directory contains code that can be loosely categorized as “handling the renderer,” covering a wide range of topics (navigation, compositing, input, etc). Many of the classes represent a browser-side version of a renderer concept (e.g., RenderFrameHostImpl is the browser-side equivalent of RenderFrameImpl). Refer to the class-level comments on how each class relates to or interacts with the renderer.

Note that many of the key classes here are defined in content/public and exposed to //content embedders, with implementations living in content/browser/renderer_host.

Rough Categories

A non-exhaustive list of rough categories and descriptions for the code within renderer_host is below. When adding something that falls into the miscellaneous category, consider if it belongs in a separate directory, either under content/browser/ or under content/browser/renderer_host.

Browser-side representation of documents and frame-tree-related renderer-side objects

Allows the browser-side code to represent document and frame-tree related concepts, and communicate with the renderer-side.

Some important classes include:

  • FrameTree and FrameTreeNode: Represents the frames in the frame tree of a page.
  • RenderFrameHost: Roughly represents a document within a frame, although it does not (yet) change for every new document.
  • RenderFrameProxyHost: A placeholder for a frame in other SiteInstanceGroups and renderer processes.
  • RenderViewHost: Represents a page within a given SiteInstanceGroup.
  • RenderWidgetHost: A group of contiguous same-SiteInstanceGroup frames that can paint or handle input events as a single unit.

For diagrams and explanations of how those classes fit with each other, see also this documentation and docs/frame_trees.md.

Connections between browser and renderer/GPU processes, process-related code

Represents child processes (e.g., renderers, GPU, etc) and their connection to the browser process.

An important class in this category is RenderProcessHost, which represents the browser side of the browser <-> renderer communication channel. There will be one RenderProcessHost per renderer process.

Navigation

Navigation handling code, coordinating the browser & renderer from navigation start to finish. Also keeps track of the session history entries created by the committed navigations.

Some important classes include:

  • NavigationRequest: Represents a navigation attempt, and tracks information related to it.
  • NavigationController: Manages the joint session history for a frame tree.
  • NavigationEntry and FrameNavigationEntry: Represents joint session history items (for pages), made up of a tree of session history items (for frames).

See also docs/navigation.md and docs/session_history.md.

Compositing, input, display

Coordinates handling of input, display, and compositing between the browser, renderer, and GPU processes.

Some important classes include:

  • RenderWidgetHostView*: The browser owned object that mediates the blink::VisualProperties to be used by an embedded Renderer.
  • DelegatedFrameHost: Used by RenderWidgetHostView to control which viz::Surface of an embedded Renderer the GPU process will display EmbeddedFrameSinkImpl: The browser owned object that mediates between an embedded Renderer and the GPU process. Allowing for the creation of Renderer-GPU Mojo connections.
  • viz::HostFrameSinkManager: The browser owned object, accessed via GetHostFrameSinkManager, that controls the Browser-GPU Mojo connection. Used to establish future connections for Renderers, as well as to control what viz::Surfaces to display.

Misc features that heavily interact with the renderer

Examples: loading/networking, file/storage, plugins, UI, fonts, media, accessibility.

Layering restriction with WebContents

Code in this directory can't call up to the WebContents “layer,” except through delegate interfaces (e.g. RenderFrameHostDelegate). This is to separate out code that deals with the renderer process and code that deals with the tab. This is enforced by the DEPS.