refactor: inherit Observer classes privately, pt. 2 (#42237)

* refactor: use private inheritance in PushNotifications

* refactor: use private inheritance in electron::api::App

* refactor: use private inheritance in electron::api::BrowserWindow

* refactor: use private inheritance in electron::api::NativeTheme

* refactor: use private inheritance in electron::api::Tray

* refactor: use private inheritance in electron::api::Session

* refactor: use private inheritance in electron::api::WebContents

* refactor: use private inheritance in electron::api::DownloadItem

* refactor: use private inheritance in electron::api::MenuBar

* refactor: use private inheritance in ClearDataOperation

* refactor: use private inheritance in electron::api::Screen

* refactor: use private inheritance in electron::ElectronDesktopWindowTreeHostLinux

* refactor: use private inheritance in SpellCheckerHolder

* refactor: use private inheritance in electron::api::PowerMonitor

* refactor: use private inheritance in electron::api::BaseWindow

* refactor: use private inheritance in electron::api::AutoUpdater

* refactor: use private inheritance in electron::api::Menu

* refactor: use private inheritance in electron::api::NativeWindowViews

* refactor: use private inheritance in electron::ElectronBrowserClient

* refactor: use private inheritance in electron::AutofillPopupView

* refactor: use private inheritance in GtkMessageBox

* refactor: use private inheritance in electron::OffScreenRenderWidgetHostView

* refactor: use private inheritance in electron::InspectableWebContents

* refactor: use private inheritance in electron::ElectronUsbDelegate

* refactor: use private inheritance in electron::LoginHandler

* refactor: use private inheritance in WebFrameRenderer

* refactor: use private inheritance in electron::ElectronSerialDelegate

* refactor: use private inheritance in electron::ClientFrameViewLinux

* refactor: use private inheritance in electron::ElectronHidDelegate

* refactor: use private inheritance in IPCRenderer

* refactor: use private inheritance in electron::WinCaptionButtonContainer

* refactor: use private inheritance in electron::ElectronApiIPCHandlerImpl

* refactor: use private inheritance in electron::api::ServiceWorkerContext

* refactor: use private inheritance in ui::FileSelectHelper

* refactor: use private inheritance in electron::api::WebContentsView

* refactor: use private inheritance in electron::api::SimpleURLLoaderWrapper

* refactor: use private inheritance in electron::api::InAppPurchase

* refactor: use private inheritance in electron::api::Debugger

* refactor: use private inheritance in electron::ElectronWebContentsUtilityHandlerImpl

* refactor: use private inheritance in electron::OffScreenWebContentsView
This commit is contained in:
Charles Kerr 2024-05-29 13:07:02 -05:00 committed by GitHub
parent 705d92c5f6
commit ae0c55c0b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 54 additions and 54 deletions

View file

@ -50,9 +50,9 @@ namespace api {
class App : public ElectronBrowserClient::Delegate, class App : public ElectronBrowserClient::Delegate,
public gin::Wrappable<App>, public gin::Wrappable<App>,
public gin_helper::EventEmitterMixin<App>, public gin_helper::EventEmitterMixin<App>,
public BrowserObserver, private BrowserObserver,
public content::GpuDataManagerObserver, private content::GpuDataManagerObserver,
public content::BrowserChildProcessObserver { private content::BrowserChildProcessObserver {
public: public:
using FileIconCallback = using FileIconCallback =
base::RepeatingCallback<void(v8::Local<v8::Value>, const gfx::Image&)>; base::RepeatingCallback<void(v8::Local<v8::Value>, const gfx::Image&)>;

View file

@ -18,7 +18,7 @@ namespace electron::api {
class AutoUpdater : public gin::Wrappable<AutoUpdater>, class AutoUpdater : public gin::Wrappable<AutoUpdater>,
public gin_helper::EventEmitterMixin<AutoUpdater>, public gin_helper::EventEmitterMixin<AutoUpdater>,
public auto_updater::Delegate, public auto_updater::Delegate,
public WindowListObserver { private WindowListObserver {
public: public:
static gin::Handle<AutoUpdater> Create(v8::Isolate* isolate); static gin::Handle<AutoUpdater> Create(v8::Isolate* isolate);

View file

@ -26,7 +26,7 @@ namespace electron::api {
class View; class View;
class BaseWindow : public gin_helper::TrackableObject<BaseWindow>, class BaseWindow : public gin_helper::TrackableObject<BaseWindow>,
public NativeWindowObserver { private NativeWindowObserver {
public: public:
static gin_helper::WrappableBase* New(gin_helper::Arguments* args); static gin_helper::WrappableBase* New(gin_helper::Arguments* args);

View file

@ -16,8 +16,8 @@
namespace electron::api { namespace electron::api {
class BrowserWindow : public BaseWindow, class BrowserWindow : public BaseWindow,
public content::WebContentsObserver, private content::WebContentsObserver,
public ExtendedWebContentsObserver { private ExtendedWebContentsObserver {
public: public:
static gin_helper::WrappableBase* New(gin_helper::ErrorThrower thrower, static gin_helper::WrappableBase* New(gin_helper::ErrorThrower thrower,
gin::Arguments* args); gin::Arguments* args);

View file

@ -28,7 +28,7 @@ namespace electron::api {
class Debugger : public gin::Wrappable<Debugger>, class Debugger : public gin::Wrappable<Debugger>,
public gin_helper::EventEmitterMixin<Debugger>, public gin_helper::EventEmitterMixin<Debugger>,
public content::DevToolsAgentHostClient, public content::DevToolsAgentHostClient,
public content::WebContentsObserver { private content::WebContentsObserver {
public: public:
static gin::Handle<Debugger> Create(v8::Isolate* isolate, static gin::Handle<Debugger> Create(v8::Isolate* isolate,
content::WebContents* web_contents); content::WebContents* web_contents);

View file

@ -24,7 +24,7 @@ namespace electron::api {
class DownloadItem : public gin::Wrappable<DownloadItem>, class DownloadItem : public gin::Wrappable<DownloadItem>,
public gin_helper::Pinnable<DownloadItem>, public gin_helper::Pinnable<DownloadItem>,
public gin_helper::EventEmitterMixin<DownloadItem>, public gin_helper::EventEmitterMixin<DownloadItem>,
public download::DownloadItem::Observer { private download::DownloadItem::Observer {
public: public:
static gin::Handle<DownloadItem> FromOrCreate(v8::Isolate* isolate, static gin::Handle<DownloadItem> FromOrCreate(v8::Isolate* isolate,
download::DownloadItem* item); download::DownloadItem* item);

View file

@ -20,7 +20,7 @@ namespace electron::api {
class InAppPurchase : public gin::Wrappable<InAppPurchase>, class InAppPurchase : public gin::Wrappable<InAppPurchase>,
public gin_helper::EventEmitterMixin<InAppPurchase>, public gin_helper::EventEmitterMixin<InAppPurchase>,
public in_app_purchase::TransactionObserver { private in_app_purchase::TransactionObserver {
public: public:
static gin::Handle<InAppPurchase> Create(v8::Isolate* isolate); static gin::Handle<InAppPurchase> Create(v8::Isolate* isolate);

View file

@ -24,7 +24,7 @@ class Menu : public gin::Wrappable<Menu>,
public gin_helper::Constructible<Menu>, public gin_helper::Constructible<Menu>,
public gin_helper::Pinnable<Menu>, public gin_helper::Pinnable<Menu>,
public ElectronMenuModel::Delegate, public ElectronMenuModel::Delegate,
public ElectronMenuModel::Observer { private ElectronMenuModel::Observer {
public: public:
// gin_helper::Constructible // gin_helper::Constructible
static gin::Handle<Menu> New(gin::Arguments* args); static gin::Handle<Menu> New(gin::Arguments* args);

View file

@ -16,7 +16,7 @@ namespace electron::api {
class NativeTheme : public gin::Wrappable<NativeTheme>, class NativeTheme : public gin::Wrappable<NativeTheme>,
public gin_helper::EventEmitterMixin<NativeTheme>, public gin_helper::EventEmitterMixin<NativeTheme>,
public ui::NativeThemeObserver { private ui::NativeThemeObserver {
public: public:
static gin::Handle<NativeTheme> Create(v8::Isolate* isolate); static gin::Handle<NativeTheme> Create(v8::Isolate* isolate);

View file

@ -20,9 +20,9 @@ namespace electron::api {
class PowerMonitor : public gin::Wrappable<PowerMonitor>, class PowerMonitor : public gin::Wrappable<PowerMonitor>,
public gin_helper::EventEmitterMixin<PowerMonitor>, public gin_helper::EventEmitterMixin<PowerMonitor>,
public gin_helper::Pinnable<PowerMonitor>, public gin_helper::Pinnable<PowerMonitor>,
public base::PowerStateObserver, private base::PowerStateObserver,
public base::PowerSuspendObserver, private base::PowerSuspendObserver,
public base::PowerThermalObserver { private base::PowerThermalObserver {
public: public:
static v8::Local<v8::Value> Create(v8::Isolate* isolate); static v8::Local<v8::Value> Create(v8::Isolate* isolate);

View file

@ -21,7 +21,7 @@ class PushNotifications
: public ElectronBrowserClient::Delegate, : public ElectronBrowserClient::Delegate,
public gin::Wrappable<PushNotifications>, public gin::Wrappable<PushNotifications>,
public gin_helper::EventEmitterMixin<PushNotifications>, public gin_helper::EventEmitterMixin<PushNotifications>,
public BrowserObserver { private BrowserObserver {
public: public:
static PushNotifications* Get(); static PushNotifications* Get();
static gin::Handle<PushNotifications> Create(v8::Isolate* isolate); static gin::Handle<PushNotifications> Create(v8::Isolate* isolate);

View file

@ -24,7 +24,7 @@ namespace electron::api {
class Screen : public gin::Wrappable<Screen>, class Screen : public gin::Wrappable<Screen>,
public gin_helper::EventEmitterMixin<Screen>, public gin_helper::EventEmitterMixin<Screen>,
public display::DisplayObserver { private display::DisplayObserver {
public: public:
static v8::Local<v8::Value> Create(gin_helper::ErrorThrower error_thrower); static v8::Local<v8::Value> Create(gin_helper::ErrorThrower error_thrower);

View file

@ -21,7 +21,7 @@ namespace api {
class ServiceWorkerContext class ServiceWorkerContext
: public gin::Wrappable<ServiceWorkerContext>, : public gin::Wrappable<ServiceWorkerContext>,
public gin_helper::EventEmitterMixin<ServiceWorkerContext>, public gin_helper::EventEmitterMixin<ServiceWorkerContext>,
public content::ServiceWorkerContextObserver { private content::ServiceWorkerContextObserver {
public: public:
static gin::Handle<ServiceWorkerContext> Create( static gin::Handle<ServiceWorkerContext> Create(
v8::Isolate* isolate, v8::Isolate* isolate,

View file

@ -262,7 +262,7 @@ class ClearDataTask {
// of a full |ClearDataTask|. This class manages its own lifetime, cleaning // of a full |ClearDataTask|. This class manages its own lifetime, cleaning
// itself up after the operation completes and notifies the task of the // itself up after the operation completes and notifies the task of the
// result. // result.
class ClearDataOperation : public BrowsingDataRemover::Observer { class ClearDataOperation : private BrowsingDataRemover::Observer {
public: public:
static void Run(std::shared_ptr<ClearDataTask> task, static void Run(std::shared_ptr<ClearDataTask> task,
BrowsingDataRemover* remover, BrowsingDataRemover* remover,

View file

@ -65,12 +65,12 @@ class Session : public gin::Wrappable<Session>,
public gin_helper::EventEmitterMixin<Session>, public gin_helper::EventEmitterMixin<Session>,
public gin_helper::CleanedUpAtExit, public gin_helper::CleanedUpAtExit,
#if BUILDFLAG(ENABLE_BUILTIN_SPELLCHECKER) #if BUILDFLAG(ENABLE_BUILTIN_SPELLCHECKER)
public SpellcheckHunspellDictionary::Observer, private SpellcheckHunspellDictionary::Observer,
#endif #endif
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS) #if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
public extensions::ExtensionRegistryObserver, private extensions::ExtensionRegistryObserver,
#endif #endif
public content::DownloadManager::Observer { private content::DownloadManager::Observer {
public: public:
// Gets or creates Session from the |browser_context|. // Gets or creates Session from the |browser_context|.
static gin::Handle<Session> CreateFrom( static gin::Handle<Session> CreateFrom(

View file

@ -39,7 +39,7 @@ class Tray : public gin::Wrappable<Tray>,
public gin_helper::Constructible<Tray>, public gin_helper::Constructible<Tray>,
public gin_helper::CleanedUpAtExit, public gin_helper::CleanedUpAtExit,
public gin_helper::Pinnable<Tray>, public gin_helper::Pinnable<Tray>,
public TrayIconObserver { private TrayIconObserver {
public: public:
// gin_helper::Constructible // gin_helper::Constructible
static gin::Handle<Tray> New(gin_helper::ErrorThrower thrower, static gin::Handle<Tray> New(gin_helper::ErrorThrower thrower,

View file

@ -111,7 +111,7 @@ class WebContents : public ExclusiveAccessContext,
public gin_helper::CleanedUpAtExit, public gin_helper::CleanedUpAtExit,
public content::WebContentsObserver, public content::WebContentsObserver,
public content::WebContentsDelegate, public content::WebContentsDelegate,
public content::RenderWidgetHost::InputEventObserver, private content::RenderWidgetHost::InputEventObserver,
public content::JavaScriptDialogManager, public content::JavaScriptDialogManager,
public InspectableWebContentsDelegate, public InspectableWebContentsDelegate,
public InspectableWebContentsViewDelegate, public InspectableWebContentsViewDelegate,

View file

@ -21,7 +21,7 @@ namespace electron::api {
class WebContents; class WebContents;
class WebContentsView : public View, class WebContentsView : public View,
public content::WebContentsObserver, private content::WebContentsObserver,
public DraggableRegionProvider { public DraggableRegionProvider {
public: public:
// Create a new instance of WebContentsView. // Create a new instance of WebContentsView.

View file

@ -20,7 +20,7 @@ class RenderFrameHost;
namespace electron { namespace electron {
class ElectronApiIPCHandlerImpl : public mojom::ElectronApiIPC, class ElectronApiIPCHandlerImpl : public mojom::ElectronApiIPC,
public content::WebContentsObserver { private content::WebContentsObserver {
public: public:
explicit ElectronApiIPCHandlerImpl( explicit ElectronApiIPCHandlerImpl(
content::RenderFrameHost* render_frame_host, content::RenderFrameHost* render_frame_host,

View file

@ -43,7 +43,7 @@ class PlatformNotificationService;
class ElectronWebAuthenticationDelegate; class ElectronWebAuthenticationDelegate;
class ElectronBrowserClient : public content::ContentBrowserClient, class ElectronBrowserClient : public content::ContentBrowserClient,
public content::RenderProcessHostObserver { private content::RenderProcessHostObserver {
public: public:
static ElectronBrowserClient* Get(); static ElectronBrowserClient* Get();
static void SetApplicationLocale(const std::string& locale); static void SetApplicationLocale(const std::string& locale);

View file

@ -21,7 +21,7 @@ class RenderFrameHost;
namespace electron { namespace electron {
class ElectronWebContentsUtilityHandlerImpl class ElectronWebContentsUtilityHandlerImpl
: public mojom::ElectronWebContentsUtility, : public mojom::ElectronWebContentsUtility,
public content::WebContentsObserver { private content::WebContentsObserver {
public: public:
explicit ElectronWebContentsUtilityHandlerImpl( explicit ElectronWebContentsUtilityHandlerImpl(
content::RenderFrameHost* render_frame_host, content::RenderFrameHost* render_frame_host,

View file

@ -41,7 +41,7 @@ class FileSelectHelper : public base::RefCountedThreadSafe<
FileSelectHelper, FileSelectHelper,
content::BrowserThread::DeleteOnUIThread>, content::BrowserThread::DeleteOnUIThread>,
public ui::SelectFileDialog::Listener, public ui::SelectFileDialog::Listener,
public content::WebContentsObserver, private content::WebContentsObserver,
private net::DirectoryLister::DirectoryListerDelegate { private net::DirectoryLister::DirectoryListerDelegate {
public: public:
// disable copy // disable copy

View file

@ -41,7 +41,7 @@ namespace electron {
// Manages the HidDelegate observers for a single browser context. // Manages the HidDelegate observers for a single browser context.
class ElectronHidDelegate::ContextObservation class ElectronHidDelegate::ContextObservation
: public HidChooserContext::DeviceObserver { : private HidChooserContext::DeviceObserver {
public: public:
ContextObservation(ElectronHidDelegate* parent, ContextObservation(ElectronHidDelegate* parent,
content::BrowserContext* browser_context) content::BrowserContext* browser_context)

View file

@ -22,7 +22,7 @@ namespace electron {
// Handles HTTP basic auth. // Handles HTTP basic auth.
class LoginHandler : public content::LoginDelegate, class LoginHandler : public content::LoginDelegate,
public content::WebContentsObserver { private content::WebContentsObserver {
public: public:
LoginHandler(const net::AuthChallengeInfo& auth_info, LoginHandler(const net::AuthChallengeInfo& auth_info,
content::WebContents* web_contents, content::WebContents* web_contents,

View file

@ -38,8 +38,8 @@ gfx::Rect ScreenToDIPRect(HWND hwnd, const gfx::Rect& pixel_bounds);
#endif #endif
class NativeWindowViews : public NativeWindow, class NativeWindowViews : public NativeWindow,
public views::WidgetObserver, private views::WidgetObserver,
public ui::EventHandler { private ui::EventHandler {
public: public:
NativeWindowViews(const gin_helper::Dictionary& options, NativeWindowViews(const gin_helper::Dictionary& options,
NativeWindow* parent); NativeWindow* parent);

View file

@ -61,9 +61,9 @@ typedef base::RepeatingCallback<void(const gfx::Rect&)> OnPopupPaintCallback;
class OffScreenRenderWidgetHostView class OffScreenRenderWidgetHostView
: public content::RenderWidgetHostViewBase, : public content::RenderWidgetHostViewBase,
public content::RenderFrameMetadataProvider::Observer, private content::RenderFrameMetadataProvider::Observer,
public ui::CompositorDelegate, public ui::CompositorDelegate,
public OffscreenViewProxyObserver { private OffscreenViewProxyObserver {
public: public:
OffScreenRenderWidgetHostView(bool transparent, OffScreenRenderWidgetHostView(bool transparent,
bool painting, bool painting,

View file

@ -28,7 +28,7 @@ namespace electron {
class OffScreenWebContentsView : public content::WebContentsView, class OffScreenWebContentsView : public content::WebContentsView,
public content::RenderViewHostDelegateView, public content::RenderViewHostDelegateView,
public NativeWindowObserver { private NativeWindowObserver {
public: public:
OffScreenWebContentsView(bool transparent, const OnPaintCallback& callback); OffScreenWebContentsView(bool transparent, const OnPaintCallback& callback);
~OffScreenWebContentsView() override; ~OffScreenWebContentsView() override;

View file

@ -20,7 +20,7 @@ namespace electron {
class SerialChooserController; class SerialChooserController;
class ElectronSerialDelegate : public content::SerialDelegate, class ElectronSerialDelegate : public content::SerialDelegate,
public SerialChooserContext::PortObserver { private SerialChooserContext::PortObserver {
public: public:
ElectronSerialDelegate(); ElectronSerialDelegate();
~ElectronSerialDelegate() override; ~ElectronSerialDelegate() override;

View file

@ -23,8 +23,8 @@ namespace electron {
class ElectronDesktopWindowTreeHostLinux class ElectronDesktopWindowTreeHostLinux
: public views::DesktopWindowTreeHostLinux, : public views::DesktopWindowTreeHostLinux,
public ui::NativeThemeObserver, private ui::NativeThemeObserver,
public ui::DeviceScaleFactorObserver { private ui::DeviceScaleFactorObserver {
public: public:
ElectronDesktopWindowTreeHostLinux( ElectronDesktopWindowTreeHostLinux(
NativeWindowViews* native_window_view, NativeWindowViews* native_window_view,

View file

@ -34,7 +34,7 @@ class InspectableWebContentsView;
class InspectableWebContents class InspectableWebContents
: public content::DevToolsAgentHostClient, : public content::DevToolsAgentHostClient,
public content::WebContentsObserver, private content::WebContentsObserver,
public content::WebContentsDelegate, public content::WebContentsDelegate,
public DevToolsEmbedderMessageDispatcher::Delegate { public DevToolsEmbedderMessageDispatcher::Delegate {
public: public:

View file

@ -47,7 +47,7 @@ base::flat_map<int, GtkWidget*>& GetDialogsMap() {
return *dialogs; return *dialogs;
} }
class GtkMessageBox : public NativeWindowObserver { class GtkMessageBox : private NativeWindowObserver {
public: public:
explicit GtkMessageBox(const MessageBoxSettings& settings) explicit GtkMessageBox(const MessageBoxSettings& settings)
: id_(settings.id), : id_(settings.id),

View file

@ -58,8 +58,8 @@ class AutofillPopupChildView : public views::View {
}; };
class AutofillPopupView : public views::WidgetDelegateView, class AutofillPopupView : public views::WidgetDelegateView,
public views::WidgetFocusChangeListener, private views::WidgetFocusChangeListener,
public views::WidgetObserver, private views::WidgetObserver,
public views::DragController { public views::DragController {
public: public:
explicit AutofillPopupView(AutofillPopup* popup, explicit AutofillPopupView(AutofillPopup* popup,

View file

@ -29,8 +29,8 @@
namespace electron { namespace electron {
class ClientFrameViewLinux : public FramelessView, class ClientFrameViewLinux : public FramelessView,
public ui::NativeThemeObserver, private ui::NativeThemeObserver,
public ui::WindowButtonOrderObserver { private ui::WindowButtonOrderObserver {
METADATA_HEADER(ClientFrameViewLinux, FramelessView) METADATA_HEADER(ClientFrameViewLinux, FramelessView)
public: public:

View file

@ -21,8 +21,8 @@ class MenuButton;
namespace electron { namespace electron {
class MenuBar : public views::AccessiblePaneView, class MenuBar : public views::AccessiblePaneView,
public MenuDelegate::Observer, private MenuDelegate::Observer,
public NativeWindowObserver { private NativeWindowObserver {
METADATA_HEADER(MenuBar, views::AccessiblePaneView) METADATA_HEADER(MenuBar, views::AccessiblePaneView)
public: public:

View file

@ -27,7 +27,7 @@ class WinCaptionButton;
// frame and browser window as needed. When extended horizontally, becomes a // frame and browser window as needed. When extended horizontally, becomes a
// grab bar for moving the window. // grab bar for moving the window.
class WinCaptionButtonContainer : public views::View, class WinCaptionButtonContainer : public views::View,
public views::WidgetObserver { private views::WidgetObserver {
METADATA_HEADER(WinCaptionButtonContainer, views::View) METADATA_HEADER(WinCaptionButtonContainer, views::View)
public: public:

View file

@ -88,7 +88,7 @@ namespace electron {
// Manages the UsbDelegate observers for a single browser context. // Manages the UsbDelegate observers for a single browser context.
class ElectronUsbDelegate::ContextObservation class ElectronUsbDelegate::ContextObservation
: public UsbChooserContext::DeviceObserver { : private UsbChooserContext::DeviceObserver {
public: public:
ContextObservation(ElectronUsbDelegate* parent, ContextObservation(ElectronUsbDelegate* parent,
content::BrowserContext* browser_context) content::BrowserContext* browser_context)

View file

@ -46,8 +46,8 @@ namespace electron::api {
class SimpleURLLoaderWrapper class SimpleURLLoaderWrapper
: public gin::Wrappable<SimpleURLLoaderWrapper>, : public gin::Wrappable<SimpleURLLoaderWrapper>,
public gin_helper::EventEmitterMixin<SimpleURLLoaderWrapper>, public gin_helper::EventEmitterMixin<SimpleURLLoaderWrapper>,
public network::SimpleURLLoaderStreamConsumer, private network::SimpleURLLoaderStreamConsumer,
public network::mojom::URLLoaderNetworkServiceObserver { private network::mojom::URLLoaderNetworkServiceObserver {
public: public:
~SimpleURLLoaderWrapper() override; ~SimpleURLLoaderWrapper() override;
static gin::Handle<SimpleURLLoaderWrapper> Create(gin::Arguments* args); static gin::Handle<SimpleURLLoaderWrapper> Create(gin::Arguments* args);

View file

@ -42,7 +42,7 @@ RenderFrame* GetCurrentRenderFrame() {
} }
class IPCRenderer : public gin::Wrappable<IPCRenderer>, class IPCRenderer : public gin::Wrappable<IPCRenderer>,
public content::RenderFrameObserver { private content::RenderFrameObserver {
public: public:
static gin::WrapperInfo kWrapperInfo; static gin::WrapperInfo kWrapperInfo;

View file

@ -272,7 +272,7 @@ class FrameSetSpellChecker : public content::RenderFrameVisitor {
content::RenderFrame* main_frame_; content::RenderFrame* main_frame_;
}; };
class SpellCheckerHolder final : public content::RenderFrameObserver { class SpellCheckerHolder final : private content::RenderFrameObserver {
public: public:
// Find existing holder for the |render_frame|. // Find existing holder for the |render_frame|.
static SpellCheckerHolder* FromRenderFrame( static SpellCheckerHolder* FromRenderFrame(
@ -330,7 +330,7 @@ class SpellCheckerHolder final : public content::RenderFrameObserver {
} // namespace } // namespace
class WebFrameRenderer : public gin::Wrappable<WebFrameRenderer>, class WebFrameRenderer : public gin::Wrappable<WebFrameRenderer>,
public content::RenderFrameObserver { private content::RenderFrameObserver {
public: public:
static gin::WrapperInfo kWrapperInfo; static gin::WrapperInfo kWrapperInfo;