From a5c1754faa7bd9491fcf64dda34b479cdf62c9bd Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 12 Apr 2017 11:58:21 +0200 Subject: Standardize override declaration Update our overrides to Qt coding standard getting rid of Q_DECL_OVERRIDE and redundant virtual declarations. Change-Id: Id8b0750eb05c51fc8f50cac4000a811eebcbf918 Reviewed-by: Joerg Bornemann --- src/core/content_browser_client_qt.h | 38 ++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/core/content_browser_client_qt.h') diff --git a/src/core/content_browser_client_qt.h b/src/core/content_browser_client_qt.h index 80ae6057e..b17dd3e39 100644 --- a/src/core/content_browser_client_qt.h +++ b/src/core/content_browser_client_qt.h @@ -43,7 +43,7 @@ #include "base/memory/ref_counted.h" #include "content/public/browser/content_browser_client.h" -#include // Needed for Q_DECL_OVERRIDE +#include namespace net { class URLRequestContextGetter; @@ -87,14 +87,14 @@ public: ContentBrowserClientQt(); ~ContentBrowserClientQt(); static ContentBrowserClientQt* Get(); - virtual content::BrowserMainParts* CreateBrowserMainParts(const content::MainFunctionParams&) Q_DECL_OVERRIDE; - virtual void RenderProcessWillLaunch(content::RenderProcessHost* host) Q_DECL_OVERRIDE; - virtual void ResourceDispatcherHostCreated() Q_DECL_OVERRIDE; - virtual gl::GLShareGroup* GetInProcessGpuShareGroup() Q_DECL_OVERRIDE; - virtual content::MediaObserver* GetMediaObserver() Q_DECL_OVERRIDE; - virtual content::QuotaPermissionContext *CreateQuotaPermissionContext() Q_DECL_OVERRIDE; - virtual void OverrideWebkitPrefs(content::RenderViewHost *, content::WebPreferences *) Q_DECL_OVERRIDE; - virtual void AllowCertificateError(content::WebContents* web_contents, + content::BrowserMainParts* CreateBrowserMainParts(const content::MainFunctionParams&) override; + void RenderProcessWillLaunch(content::RenderProcessHost* host) override; + void ResourceDispatcherHostCreated() override; + gl::GLShareGroup* GetInProcessGpuShareGroup() override; + content::MediaObserver* GetMediaObserver() override; + content::QuotaPermissionContext *CreateQuotaPermissionContext() override; + void OverrideWebkitPrefs(content::RenderViewHost *, content::WebPreferences *) override; + void AllowCertificateError(content::WebContents* web_contents, int cert_error, const net::SSLInfo& ssl_info, const GURL& request_url, @@ -102,25 +102,25 @@ public: bool overridable, bool strict_enforcement, bool expired_previous_decision, - const base::Callback& callback) Q_DECL_OVERRIDE; - virtual void SelectClientCertificate(content::WebContents* web_contents, + const base::Callback& callback) override; + void SelectClientCertificate(content::WebContents* web_contents, net::SSLCertRequestInfo* cert_request_info, - std::unique_ptr delegate) Q_DECL_OVERRIDE; - content::DevToolsManagerDelegate *GetDevToolsManagerDelegate() Q_DECL_OVERRIDE; + std::unique_ptr delegate) override; + content::DevToolsManagerDelegate *GetDevToolsManagerDelegate() override; - virtual std::string GetApplicationLocale() Q_DECL_OVERRIDE; - std::string GetAcceptLangs(content::BrowserContext* context) Q_DECL_OVERRIDE; - virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, int child_process_id) Q_DECL_OVERRIDE; - virtual void GetAdditionalWebUISchemes(std::vector* additional_schemes) Q_DECL_OVERRIDE; + std::string GetApplicationLocale() override; + std::string GetAcceptLangs(content::BrowserContext* context) override; + void AppendExtraCommandLineSwitches(base::CommandLine* command_line, int child_process_id) override; + void GetAdditionalWebUISchemes(std::vector* additional_schemes) override; void RegisterRenderFrameMojoInterfaces(service_manager::InterfaceRegistry* registry, content::RenderFrameHost* render_frame_host) override; #if defined(Q_OS_LINUX) - virtual void GetAdditionalMappedFilesForChildProcess(const base::CommandLine& command_line, int child_process_id, content::FileDescriptorInfo* mappings) Q_DECL_OVERRIDE; + void GetAdditionalMappedFilesForChildProcess(const base::CommandLine& command_line, int child_process_id, content::FileDescriptorInfo* mappings) override; #endif #if defined(ENABLE_PLUGINS) - virtual void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) Q_DECL_OVERRIDE; + void DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) override; #endif private: -- cgit v1.2.3