mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: prefer to inherit observer classes privately (#41360)
* refactor: use private inheritance in CookieChangeNotifier * refactor: use private inheritance in WebViewGuestDelegate * refactor: use private inheritance in UsbChooserController * refactor: use private inheritance in DesktopCapturer * refactor: use private inheritance in Browser * refactor: use private inheritance in WebContentsZoomController * refactor: use private inheritance in FrameSubscriber * refactor: use private inheritance in AutofillAgent * refactor: use private inheritance in HidChooserController * refactor: use private inheritance in PepperHelper * refactor: use private inheritance in AutofillPopup * refactor: use private inheritance in SerialChooserController * refactor: use private inheritance in MediaCaptureDevicesDispatcher * refactor: use private inheritance in electron::api::View * refactor: use private inheritance in AutofillDriverFactory * refactor: use private inheritance in GPUInfoManager * refactor: use private inheritance in SavePageHandler * refactor: use private inheritance in GlobalShortcut * refactor: use private inheritance in ElectronRenderFrameObserver
This commit is contained in:
@@ -27,8 +27,8 @@ class RenderFrameHost;
|
||||
namespace electron {
|
||||
|
||||
// UsbChooserController creates a chooser for WebUSB.
|
||||
class UsbChooserController final : public UsbChooserContext::DeviceObserver,
|
||||
public content::WebContentsObserver {
|
||||
class UsbChooserController final : private UsbChooserContext::DeviceObserver,
|
||||
private content::WebContentsObserver {
|
||||
public:
|
||||
UsbChooserController(
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
|
||||
Reference in New Issue
Block a user