refactor: natively promisify WebContents.prototype.takeHeapSnapshot (#18000)
This commit is contained in:
parent
18b77a4de6
commit
7574f91f31
3 changed files with 22 additions and 26 deletions
|
@ -294,8 +294,7 @@ class WebContents : public mate::TrackableObject<WebContents>,
|
|||
// the specified URL.
|
||||
void GrantOriginAccess(const GURL& url);
|
||||
|
||||
void TakeHeapSnapshot(const base::FilePath& file_path,
|
||||
base::Callback<void(bool)>);
|
||||
v8::Local<v8::Promise> TakeHeapSnapshot(const base::FilePath& file_path);
|
||||
|
||||
// Properties.
|
||||
int32_t ID() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue