refactor: replace deprecated DISALLOW_COPY_AND_ASSIGN (#31633)

This commit is contained in:
Milan Burda 2021-11-03 12:41:45 +01:00 committed by GitHub
parent 2a2a1a834c
commit 65a980c673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
231 changed files with 918 additions and 576 deletions

View file

@ -21,6 +21,10 @@ class WebViewGuestDelegate : public content::BrowserPluginGuestDelegate,
api::WebContents* api_web_contents);
~WebViewGuestDelegate() override;
// disable copy
WebViewGuestDelegate(const WebViewGuestDelegate&) = delete;
WebViewGuestDelegate& operator=(const WebViewGuestDelegate&) = delete;
// Attach to the iframe.
void AttachToIframe(content::WebContents* embedder_web_contents,
int embedder_frame_id);
@ -49,8 +53,6 @@ class WebViewGuestDelegate : public content::BrowserPluginGuestDelegate,
WebContentsZoomController* embedder_zoom_controller_ = nullptr;
api::WebContents* api_web_contents_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(WebViewGuestDelegate);
};
} // namespace electron