Return base::ProcessId
This commit is contained in:
parent
d79ac8d9c1
commit
350528707b
2 changed files with 2 additions and 2 deletions
|
@ -1008,7 +1008,7 @@ int WebContents::GetProcessID() const {
|
||||||
return web_contents()->GetRenderProcessHost()->GetID();
|
return web_contents()->GetRenderProcessHost()->GetID();
|
||||||
}
|
}
|
||||||
|
|
||||||
int WebContents::GetOSProcessID() const {
|
base::ProcessId WebContents::GetOSProcessID() const {
|
||||||
auto process_handle = web_contents()->GetRenderProcessHost()->GetHandle();
|
auto process_handle = web_contents()->GetRenderProcessHost()->GetHandle();
|
||||||
return base::GetProcId(process_handle);
|
return base::GetProcId(process_handle);
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ class WebContents : public mate::TrackableObject<WebContents>,
|
||||||
|
|
||||||
int64_t GetID() const;
|
int64_t GetID() const;
|
||||||
int GetProcessID() const;
|
int GetProcessID() const;
|
||||||
int GetOSProcessID() const;
|
base::ProcessId GetOSProcessID() const;
|
||||||
Type GetType() const;
|
Type GetType() const;
|
||||||
bool Equal(const WebContents* web_contents) const;
|
bool Equal(const WebContents* web_contents) const;
|
||||||
void LoadURL(const GURL& url, const mate::Dictionary& options);
|
void LoadURL(const GURL& url, const mate::Dictionary& options);
|
||||||
|
|
Loading…
Reference in a new issue