mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-13 10:06:28 +01:00
241941a44a
This change moves the SendProcessMessage method from CefBrowser to CefFrame and adds CefBrowser parameters to OnProcessMessageReceived and OnDraggableRegionsChanged. The internal implementation has changed as follows: - Frame IDs are now a 64-bit combination of the 32-bit render_process_id and render_routing_id values that uniquely identify a RenderFrameHost (RFH). - CefFrameHostImpl objects are now managed by CefBrowserInfo with life span tied to RFH expectations. Specifically, a CefFrameHostImpl object representing a sub-frame will be created when a RenderFrame is created in the renderer process and detached when the associated RenderFrame is deleted or the renderer process in which it runs has died. - The CefFrameHostImpl object representing the main frame will always be valid but the underlying RFH (and associated frame ID) may change over time as a result of cross-origin navigations. Despite these changes calling LoadURL on the main frame object in the browser process will always navigate as expected. - Speculative RFHs, which may be created as a result of a cross-origin navigation and discarded if that navigation is not committed, are now handled correctly (e.g. ignored in most cases until they're committed). - It is less likely, but still possible, to receive a CefFrame object with an invalid frame ID (ID < 0). This can happen in cases where a RFH has not yet been created for a sub-frame. For example, when OnBeforeBrowse is called before initiating navigation in a previously nonexisting sub-frame. To test: All tests pass with NetworkService enabled and disabled. |
||
---|---|---|
.. | ||
api | ||
value_store | ||
browser_extensions_util.cc | ||
browser_extensions_util.h | ||
browser_platform_delegate_background.cc | ||
browser_platform_delegate_background.h | ||
chrome_api_registration.cc | ||
chrome_api_registration.h | ||
component_extension_resource_manager.cc | ||
component_extension_resource_manager.h | ||
extension_background_host.cc | ||
extension_background_host.h | ||
extension_function_details.cc | ||
extension_function_details.h | ||
extension_host_delegate.cc | ||
extension_host_delegate.h | ||
extension_system_factory.cc | ||
extension_system_factory.h | ||
extension_system.cc | ||
extension_system.h | ||
extension_view_host.cc | ||
extension_view_host.h | ||
extension_web_contents_observer.cc | ||
extension_web_contents_observer.h | ||
extensions_api_client.cc | ||
extensions_api_client.h | ||
extensions_browser_api_provider.cc | ||
extensions_browser_api_provider.h | ||
extensions_browser_client.cc | ||
extensions_browser_client.h | ||
mime_handler_view_guest_delegate.cc | ||
mime_handler_view_guest_delegate.h | ||
pdf_extension_util.cc | ||
pdf_extension_util.h | ||
pdf_web_contents_helper_client.cc | ||
pdf_web_contents_helper_client.h |