mercredi 4 mars 2015

Adding new tab in Google Chrome browser


Vote count:

0




What exactly happens when a new tab is added in the Chrome browser? According to the Chrome documentation, here are the steps.



  1. Browser::AddTab in chrome/browser/ui/browser.cc is called to append a new tab.

  2. It will create a new TabContents object from browser/tab_contents/tab_contents.cc

  3. TabContents creates a RenderViewHost (chrome/browser/renderer_host/render_view_host.cc) via the RenderViewHostManager's Init function in chrome/browser/tab_contents/render_view_host_manager.cc). Depending on the SiteInstance, the RenderViewHost either spawns a new renderer process, or re-uses an existing RenderProcessHost. RenderProcessHost is the object in the browser that represents a single renderer subprocess.


However, the latest Chrome source code does not seem to have the files/methods mentioned there. If the flow is still same then any idea what files/methods are used?


Thanks.



asked 29 secs ago

RMS1

18






Adding new tab in Google Chrome browser

Aucun commentaire:

Enregistrer un commentaire