[chromium-style] override / virtual warnings

This commit is contained in:
Jeremy Apthorp 2018-04-17 16:03:51 -07:00
parent a635f078c6
commit e6695cf2ec
62 changed files with 106 additions and 106 deletions

View file

@ -23,7 +23,7 @@ class BrowserClient : public content::ContentBrowserClient {
static void SetApplicationLocale(const std::string& locale);
BrowserClient();
~BrowserClient();
~BrowserClient() override;
BrowserMainParts* browser_main_parts() { return browser_main_parts_; }

View file

@ -33,7 +33,7 @@ namespace brightray {
class BrowserMainParts : public content::BrowserMainParts {
public:
BrowserMainParts();
~BrowserMainParts();
~BrowserMainParts() override;
IOThread* io_thread() const { return io_thread_.get(); }

View file

@ -18,7 +18,7 @@ class DevToolsManagerDelegate : public content::DevToolsManagerDelegate {
static void StartHttpHandler();
DevToolsManagerDelegate();
virtual ~DevToolsManagerDelegate();
~DevToolsManagerDelegate() override;
// DevToolsManagerDelegate implementation.
void Inspect(content::DevToolsAgentHost* agent_host) override;

View file

@ -40,7 +40,7 @@ class InspectableWebContentsImpl
static void RegisterPrefs(PrefRegistrySimple* pref_registry);
explicit InspectableWebContentsImpl(content::WebContents*);
virtual ~InspectableWebContentsImpl();
~InspectableWebContentsImpl() override;
InspectableWebContentsView* GetView() const override;
content::WebContents* GetWebContents() const override;

View file

@ -15,7 +15,7 @@ class InspectableWebContentsViewMac : public InspectableWebContentsView {
public:
explicit InspectableWebContentsViewMac(
InspectableWebContentsImpl* inspectable_web_contents_impl);
virtual ~InspectableWebContentsViewMac();
~InspectableWebContentsViewMac() override;
gfx::NativeView GetNativeView() const override;
void ShowDevTools() override;

View file

@ -18,7 +18,7 @@ class LibnotifyNotification : public Notification {
public:
LibnotifyNotification(NotificationDelegate* delegate,
NotificationPresenter* presenter);
virtual ~LibnotifyNotification();
~LibnotifyNotification() override;
static bool Initialize();

View file

@ -13,7 +13,7 @@ namespace brightray {
class NotificationPresenterLinux : public NotificationPresenter {
public:
NotificationPresenterLinux();
~NotificationPresenterLinux();
~NotificationPresenterLinux() override;
private:
Notification* CreateNotificationObject(

View file

@ -20,7 +20,7 @@ class CocoaNotification : public Notification {
public:
CocoaNotification(NotificationDelegate* delegate,
NotificationPresenter* presenter);
~CocoaNotification();
~CocoaNotification() override;
// Notification:
void Show(const NotificationOptions& options) override;

View file

@ -19,7 +19,7 @@ class NotificationPresenterMac : public NotificationPresenter {
CocoaNotification* GetNotification(NSUserNotification* notif);
NotificationPresenterMac();
~NotificationPresenterMac();
~NotificationPresenterMac() override;
private:
Notification* CreateNotificationObject(

View file

@ -70,7 +70,7 @@ class MediaCaptureDevicesDispatcher : public content::MediaObserver {
friend struct base::DefaultSingletonTraits<MediaCaptureDevicesDispatcher>;
MediaCaptureDevicesDispatcher();
virtual ~MediaCaptureDevicesDispatcher();
~MediaCaptureDevicesDispatcher() override;
// Flag used by unittests to disable device enumeration.
bool is_device_enumeration_disabled_;

View file

@ -15,7 +15,7 @@ namespace brightray {
class NetworkDelegate : public net::NetworkDelegate {
public:
NetworkDelegate();
virtual ~NetworkDelegate();
~NetworkDelegate() override;
protected:
int OnBeforeURLRequest(net::URLRequest* request,

View file

@ -73,7 +73,7 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
content::ProtocolHandlerMap* protocol_handlers,
content::URLRequestInterceptorScopedVector protocol_interceptors);
virtual ~URLRequestContextGetter();
~URLRequestContextGetter() override;
// net::CookieStore::CookieChangedCallback implementation.
void OnCookieChanged(const net::CanonicalCookie& cookie,

View file

@ -30,7 +30,7 @@ class DevToolsWindowDelegate : public views::ClientView,
if (shell->GetDelegate())
icon_ = shell->GetDelegate()->GetDevToolsWindowIcon();
}
virtual ~DevToolsWindowDelegate() {}
~DevToolsWindowDelegate() override {}
// views::WidgetDelegate:
void DeleteDelegate() override { delete this; }

View file

@ -21,7 +21,7 @@ class InspectableWebContentsViewViews : public InspectableWebContentsView,
public:
explicit InspectableWebContentsViewViews(
InspectableWebContentsImpl* inspectable_web_contents_impl);
~InspectableWebContentsViewViews();
~InspectableWebContentsViewViews() override;
// InspectableWebContentsView:
views::View* GetView() override;

View file

@ -15,7 +15,7 @@ namespace brightray {
class ViewsDelegate : public views::ViewsDelegate {
public:
ViewsDelegate();
virtual ~ViewsDelegate();
~ViewsDelegate() override;
protected:
// views::ViewsDelegate:

View file

@ -23,7 +23,7 @@ class WebUIControllerFactory : public content::WebUIControllerFactory {
static WebUIControllerFactory* GetInstance();
WebUIControllerFactory();
virtual ~WebUIControllerFactory();
~WebUIControllerFactory() override;
content::WebUI::TypeID GetWebUIType(content::BrowserContext* browser_context,
const GURL& url) const override;