refactor: remove more uses of v8::Isolate::GetCurrent() (#28369)
This commit is contained in:
parent
ff96fabe5e
commit
ae2059eaa1
9 changed files with 43 additions and 44 deletions
|
@ -66,7 +66,7 @@ class DownloadItem : public gin::Wrappable<DownloadItem>,
|
|||
std::string GetFilename() const;
|
||||
std::string GetContentDisposition() const;
|
||||
const GURL& GetURL() const;
|
||||
v8::Local<v8::Value> GetURLChain(v8::Isolate*) const;
|
||||
v8::Local<v8::Value> GetURLChain() const;
|
||||
download::DownloadItem::DownloadState GetState() const;
|
||||
bool IsDone() const;
|
||||
void SetSaveDialogOptions(const file_dialog::DialogSettings& options);
|
||||
|
@ -78,6 +78,8 @@ class DownloadItem : public gin::Wrappable<DownloadItem>,
|
|||
file_dialog::DialogSettings dialog_options_;
|
||||
download::DownloadItem* download_item_;
|
||||
|
||||
v8::Isolate* isolate_;
|
||||
|
||||
base::WeakPtrFactory<DownloadItem> weak_factory_{this};
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(DownloadItem);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue