GetRenderProcessHost() has been removed for OOPI support, should use #include GetMainFrame()->GetProcess()
This commit is contained in:
parent
c3dec709ab
commit
a8e013dcb6
4 changed files with 17 additions and 10 deletions
|
@ -1041,7 +1041,7 @@ void WebContents::NavigationEntryCommitted(
|
|||
}
|
||||
|
||||
int64_t WebContents::GetIDForContents(content::WebContents* web_contents) {
|
||||
int64_t process_id = web_contents->GetRenderProcessHost()->GetID();
|
||||
int64_t process_id = web_contents->GetMainFrame()->GetProcess()->GetID();
|
||||
int64_t routing_id = web_contents->GetMainFrame()->GetRoutingID();
|
||||
int64_t rv = (process_id << 32) + routing_id;
|
||||
return rv;
|
||||
|
@ -1052,11 +1052,12 @@ int64_t WebContents::GetID() const {
|
|||
}
|
||||
|
||||
int WebContents::GetProcessID() const {
|
||||
return web_contents()->GetRenderProcessHost()->GetID();
|
||||
return web_contents()->GetMainFrame()->GetProcess()->GetID();
|
||||
}
|
||||
|
||||
base::ProcessId WebContents::GetOSProcessID() const {
|
||||
auto process_handle = web_contents()->GetRenderProcessHost()->GetHandle();
|
||||
auto process_handle =
|
||||
web_contents()->GetMainFrame()->GetProcess()->GetHandle();
|
||||
return base::GetProcId(process_handle);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue