protected:
// content::ContentClient:
- virtual std::string GetProduct() const OVERRIDE;
- virtual void AddAdditionalSchemes(
+ std::string GetProduct() const override;
+ void AddAdditionalSchemes(
std::vector<std::string>* standard_schemes,
- std::vector<std::string>* savable_schemes) OVERRIDE;
+ std::vector<std::string>* savable_schemes) override;
private:
DISALLOW_COPY_AND_ASSIGN(AtomContentClient);
virtual ~AutoUpdater();
// AutoUpdaterDelegate implementations.
- virtual void OnError(const std::string& error) OVERRIDE;
- virtual void OnCheckingForUpdate() OVERRIDE;
- virtual void OnUpdateAvailable() OVERRIDE;
- virtual void OnUpdateNotAvailable() OVERRIDE;
- virtual void OnUpdateDownloaded(
+ void OnError(const std::string& error) override;
+ void OnCheckingForUpdate() override;
+ void OnUpdateAvailable() override;
+ void OnUpdateNotAvailable() override;
+ void OnUpdateDownloaded(
const std::string& release_notes,
const std::string& release_name,
const base::Time& release_date,
const std::string& update_url,
- const base::Closure& quit_and_install) OVERRIDE;
+ const base::Closure& quit_and_install) override;
// mate::Wrappable implementations:
- virtual mate::ObjectTemplateBuilder GetObjectTemplateBuilder(
- v8::Isolate* isolate);
+ mate::ObjectTemplateBuilder GetObjectTemplateBuilder(
+ v8::Isolate* isolate) override;
private:
void QuitAndInstall();
virtual ~GlobalShortcut();
// mate::Wrappable implementations:
- virtual mate::ObjectTemplateBuilder GetObjectTemplateBuilder(
- v8::Isolate* isolate) OVERRIDE;
+ mate::ObjectTemplateBuilder GetObjectTemplateBuilder(
+ v8::Isolate* isolate) override;
private:
typedef std::map<ui::Accelerator, base::Closure> AcceleratorCallbackMap;
void UnregisterAll();
// GlobalShortcutListener::Observer implementation.
- virtual void OnKeyPressed(const ui::Accelerator& accelerator) OVERRIDE;
+ void OnKeyPressed(const ui::Accelerator& accelerator) override;
AcceleratorCallbackMap accelerator_callback_map_;
protected:
MenuMac();
- virtual void Popup(Window* window) OVERRIDE;
- virtual void PopupAt(Window* window, int x, int y) OVERRIDE;
+ void Popup(Window* window) override;
+ void PopupAt(Window* window, int x, int y) override;
base::scoped_nsobject<AtomMenuController> menu_controller_;
MenuViews();
protected:
- virtual void Popup(Window* window) OVERRIDE;
- virtual void PopupAt(Window* window, int x, int y) OVERRIDE;
+ void Popup(Window* window) override;
+ void PopupAt(Window* window, int x, int y) override;
private:
void PopupAtPoint(Window* window, const gfx::Point& point);
virtual ~PowerMonitor();
// base::PowerObserver implementations:
- virtual void OnPowerStateChange(bool on_battery_power) OVERRIDE;
- virtual void OnSuspend() OVERRIDE;
- virtual void OnResume() OVERRIDE;
+ void OnPowerStateChange(bool on_battery_power) override;
+ void OnSuspend() override;
+ void OnResume() override;
private:
DISALLOW_COPY_AND_ASSIGN(PowerMonitor);
}
// AdapterRequestJob:
- virtual void GetJobTypeInUI() OVERRIDE {
+ void GetJobTypeInUI() override {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
v8::Isolate* isolate = v8::Isolate::GetCurrent();
: registry_(registry), protocol_handler_(protocol_handler) {
}
- virtual net::URLRequestJob* MaybeCreateJob(
+ net::URLRequestJob* MaybeCreateJob(
net::URLRequest* request,
- net::NetworkDelegate* network_delegate) const OVERRIDE {
+ net::NetworkDelegate* network_delegate) const override {
return new CustomProtocolRequestJob(registry_, protocol_handler_.get(),
request, network_delegate);
}
virtual ~Event();
// Wrappable implementations:
- virtual ObjectTemplateBuilder GetObjectTemplateBuilder(v8::Isolate* isolate);
+ ObjectTemplateBuilder GetObjectTemplateBuilder(v8::Isolate* isolate) override;
// content::WebContentsObserver implementations:
- virtual void WebContentsDestroyed() OVERRIDE;
+ void WebContentsDestroyed() override;
private:
// Replyer for the synchronous messages.
virtual ~AtomAccessTokenStore();
// content::AccessTokenStore:
- virtual void LoadAccessTokens(
- const LoadAccessTokensCallbackType& callback) OVERRIDE;
- virtual void SaveAccessToken(const GURL& server_url,
- const base::string16& access_token) OVERRIDE;
+ void LoadAccessTokens(
+ const LoadAccessTokensCallbackType& callback) override;
+ void SaveAccessToken(const GURL& server_url,
+ const base::string16& access_token) override;
private:
DISALLOW_COPY_AND_ASSIGN(AtomAccessTokenStore);
protected:
// Implementations of brightray::BrowserMainParts.
- virtual brightray::BrowserContext* CreateBrowserContext() OVERRIDE;
+ brightray::BrowserContext* CreateBrowserContext() override;
// Implementations of content::BrowserMainParts.
- virtual void PostEarlyInitialization() OVERRIDE;
- virtual void PreMainMessageLoopRun() OVERRIDE;
+ void PostEarlyInitialization() override;
+ void PreMainMessageLoopRun() override;
#if defined(OS_MACOSX)
- virtual void PreMainMessageLoopStart() OVERRIDE;
- virtual void PostDestroyThreads() OVERRIDE;
+ void PreMainMessageLoopStart() override;
+ void PostDestroyThreads() override;
#endif
private:
class AtomJavaScriptDialogManager : public content::JavaScriptDialogManager {
public:
// content::JavaScriptDialogManager implementations.
- virtual void RunJavaScriptDialog(
+ void RunJavaScriptDialog(
content::WebContents* web_contents,
const GURL& origin_url,
const std::string& accept_lang,
const base::string16& message_text,
const base::string16& default_prompt_text,
const DialogClosedCallback& callback,
- bool* did_suppress_message) OVERRIDE;
- virtual void RunBeforeUnloadDialog(
+ bool* did_suppress_message) override;
+ void RunBeforeUnloadDialog(
content::WebContents* web_contents,
const base::string16& message_text,
bool is_reload,
- const DialogClosedCallback& callback) OVERRIDE;
- virtual void CancelActiveAndPendingDialogs(
- content::WebContents* web_contents) OVERRIDE {}
- virtual void WebContentsDestroyed(
- content::WebContents* web_contents) OVERRIDE {}
+ const DialogClosedCallback& callback) override;
+ void CancelActiveAndPendingDialogs(
+ content::WebContents* web_contents) override {}
+ void WebContentsDestroyed(content::WebContents* web_contents) override {}
};
} // namespace atom
}
virtual ~NativeWindowClientView() {}
- virtual bool CanClose() OVERRIDE {
+ bool CanClose() override {
static_cast<NativeWindowViews*>(contents_view())->CloseWebContents();
return false;
}
public:
// net::URLRequestJob:
- virtual void Start() OVERRIDE;
- virtual void Kill() OVERRIDE;
- virtual bool ReadRawData(net::IOBuffer* buf,
- int buf_size,
- int *bytes_read) OVERRIDE;
- virtual bool IsRedirectResponse(GURL* location,
- int* http_status_code) OVERRIDE;
- virtual net::Filter* SetupFilter() const OVERRIDE;
- virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
- virtual bool GetCharset(std::string* charset) OVERRIDE;
+ void Start() override;
+ void Kill() override;
+ bool ReadRawData(net::IOBuffer* buf,
+ int buf_size,
+ int *bytes_read) override;
+ bool IsRedirectResponse(GURL* location,
+ int* http_status_code) override;
+ net::Filter* SetupFilter() const override;
+ bool GetMimeType(std::string* mime_type) const override;
+ bool GetCharset(std::string* charset) override;
base::WeakPtr<AdapterRequestJob> GetWeakPtr();
Archive* GetOrCreateAsarArchive(const base::FilePath& path) const;
// net::URLRequestJobFactory::ProtocolHandler:
- virtual net::URLRequestJob* MaybeCreateJob(
+ net::URLRequestJob* MaybeCreateJob(
net::URLRequest* request,
- net::NetworkDelegate* network_delegate) const OVERRIDE;
- virtual bool IsSafeRedirectTarget(const GURL& location) const OVERRIDE;
+ net::NetworkDelegate* network_delegate) const override;
+ bool IsSafeRedirectTarget(const GURL& location) const override;
private:
const scoped_refptr<base::TaskRunner> file_task_runner_;
const scoped_refptr<base::TaskRunner>& file_task_runner);
// net::URLRequestJob:
- virtual void Start() OVERRIDE;
- virtual void Kill() OVERRIDE;
- virtual bool ReadRawData(net::IOBuffer* buf,
- int buf_size,
- int* bytes_read) OVERRIDE;
- virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
+ void Start() override;
+ void Kill() override;
+ bool ReadRawData(net::IOBuffer* buf,
+ int buf_size,
+ int* bytes_read) override;
+ bool GetMimeType(std::string* mime_type) const override;
protected:
virtual ~URLRequestAsarJob();
bool HasProtocolHandler(const std::string& scheme) const;
// URLRequestJobFactory implementation
- virtual net::URLRequestJob* MaybeCreateJobWithProtocolHandler(
+ net::URLRequestJob* MaybeCreateJobWithProtocolHandler(
const std::string& scheme,
net::URLRequest* request,
- net::NetworkDelegate* network_delegate) const OVERRIDE;
- virtual bool IsHandledProtocol(const std::string& scheme) const OVERRIDE;
- virtual bool IsHandledURL(const GURL& url) const OVERRIDE;
- virtual bool IsSafeRedirectTarget(const GURL& location) const OVERRIDE;
+ net::NetworkDelegate* network_delegate) const override;
+ bool IsHandledProtocol(const std::string& scheme) const override;
+ bool IsHandledURL(const GURL& url) const override;
+ bool IsSafeRedirectTarget(const GURL& location) const override;
private:
typedef std::map<std::string, ProtocolHandler*> ProtocolHandlerMap;
const std::string& data);
// URLRequestSimpleJob:
- virtual int GetData(std::string* mime_type,
- std::string* charset,
- std::string* data,
- const net::CompletionCallback& callback) const OVERRIDE;
+ int GetData(std::string* mime_type,
+ std::string* charset,
+ std::string* data,
+ const net::CompletionCallback& callback) const override;
private:
std::string mime_type_;
static void DebugMessageHandler(const v8::Debug::Message& message);
// net::StreamListenSocket::Delegate:
- virtual void DidAccept(net::StreamListenSocket* server,
- scoped_ptr<net::StreamListenSocket> socket) OVERRIDE;
- virtual void DidRead(net::StreamListenSocket* socket,
- const char* data,
- int len) OVERRIDE;
- virtual void DidClose(net::StreamListenSocket* socket) OVERRIDE;
+ void DidAccept(net::StreamListenSocket* server,
+ scoped_ptr<net::StreamListenSocket> socket) override;
+ void DidRead(net::StreamListenSocket* socket,
+ const char* data,
+ int len) override;
+ void DidClose(net::StreamListenSocket* socket) override;
v8::Isolate* isolate_;
TrayIconCocoa();
virtual ~TrayIconCocoa();
- virtual void SetImage(const gfx::Image& image) OVERRIDE;
- virtual void SetPressedImage(const gfx::Image& image) OVERRIDE;
- virtual void SetToolTip(const std::string& tool_tip) OVERRIDE;
- virtual void SetTitle(const std::string& title) OVERRIDE;
- virtual void SetHighlightMode(bool highlight) OVERRIDE;
- virtual void SetContextMenu(ui::SimpleMenuModel* menu_model) OVERRIDE;
+ void SetImage(const gfx::Image& image) override;
+ void SetPressedImage(const gfx::Image& image) override;
+ void SetToolTip(const std::string& tool_tip) override;
+ void SetTitle(const std::string& title) override;
+ void SetHighlightMode(bool highlight) override;
+ void SetContextMenu(ui::SimpleMenuModel* menu_model) override;
private:
base::scoped_nsobject<NSStatusItem> item_;
virtual ~TrayIconGtk();
// TrayIcon:
- virtual void SetImage(const gfx::Image& image) OVERRIDE;
- virtual void SetToolTip(const std::string& tool_tip) OVERRIDE;
- virtual void SetContextMenu(ui::SimpleMenuModel* menu_model) OVERRIDE;
+ void SetImage(const gfx::Image& image) override;
+ void SetToolTip(const std::string& tool_tip) override;
+ void SetContextMenu(ui::SimpleMenuModel* menu_model) override;
private:
// views::StatusIconLinux::Delegate:
- virtual void OnClick() OVERRIDE;
- virtual bool HasClickAction() OVERRIDE;
+ void OnClick() override;
+ bool HasClickAction() override;
scoped_ptr<views::StatusIconLinux> icon_;
public:
static CrashReporterLinux* GetInstance();
- virtual void InitBreakpad(const std::string& product_name,
- const std::string& version,
- const std::string& company_name,
- const std::string& submit_url,
- bool auto_submit,
- bool skip_system_crash_handler) OVERRIDE;
- virtual void SetUploadParameters() OVERRIDE;
+ void InitBreakpad(const std::string& product_name,
+ const std::string& version,
+ const std::string& company_name,
+ const std::string& submit_url,
+ bool auto_submit,
+ bool skip_system_crash_handler) override;
+ void SetUploadParameters() override;
private:
friend struct DefaultSingletonTraits<CrashReporterLinux>;
public:
static CrashReporterMac* GetInstance();
- virtual void InitBreakpad(const std::string& product_name,
- const std::string& version,
- const std::string& company_name,
- const std::string& submit_url,
- bool auto_submit,
- bool skip_system_crash_handler) OVERRIDE;
- virtual void SetUploadParameters() OVERRIDE;
+ void InitBreakpad(const std::string& product_name,
+ const std::string& version,
+ const std::string& company_name,
+ const std::string& submit_url,
+ bool auto_submit,
+ bool skip_system_crash_handler) override;
+ void SetUploadParameters() override;
private:
friend struct DefaultSingletonTraits<CrashReporterMac>;
public:
static CrashReporterWin* GetInstance();
- virtual void InitBreakpad(const std::string& product_name,
- const std::string& version,
- const std::string& company_name,
- const std::string& submit_url,
- bool auto_submit,
- bool skip_system_crash_handler) OVERRIDE;
- virtual void SetUploadParameters() OVERRIDE;
+ void InitBreakpad(const std::string& product_name,
+ const std::string& version,
+ const std::string& company_name,
+ const std::string& submit_url,
+ bool auto_submit,
+ bool skip_system_crash_handler) override;
+ void SetUploadParameters() override;
private:
friend struct DefaultSingletonTraits<CrashReporterWin>;
private:
// content::RenderViewObserver implementation.
- virtual void DidCreateDocumentElement(blink::WebLocalFrame* frame) OVERRIDE;
- virtual void DraggableRegionsChanged(blink::WebFrame* frame) OVERRIDE;
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ void DidCreateDocumentElement(blink::WebLocalFrame* frame) override;
+ void DraggableRegionsChanged(blink::WebFrame* frame) override;
+ bool OnMessageReceived(const IPC::Message& message) override;
void OnBrowserMessage(const base::string16& channel,
const base::ListValue& args);
PrintingMessageFilter(int render_process_id);
// content::BrowserMessageFilter methods.
- virtual void OverrideThreadForMessage(
+ void OverrideThreadForMessage(
const IPC::Message& message,
- content::BrowserThread::ID* thread) OVERRIDE;
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ content::BrowserThread::ID* thread) override;
+ bool OnMessageReceived(const IPC::Message& message) override;
private:
virtual ~PrintingMessageFilter();
content::BrowserContext* browser_context);
// content::BrowserMessageFilter implementation.
- virtual void OverrideThreadForMessage(
+ void OverrideThreadForMessage(
const IPC::Message& message,
- content::BrowserThread::ID* thread) OVERRIDE;
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
- virtual void OnChannelClosing() OVERRIDE;
- virtual void OnDestruct() const OVERRIDE;
+ content::BrowserThread::ID* thread) override;
+ bool OnMessageReceived(const IPC::Message& message) override;
+ void OnChannelClosing() override;
+ void OnDestruct() const override;
// UtteranceEventDelegate implementation.
- virtual void OnTtsEvent(Utterance* utterance,
- TtsEventType event_type,
- int char_index,
- const std::string& error_message) OVERRIDE;
+ void OnTtsEvent(Utterance* utterance,
+ TtsEventType event_type,
+ int char_index,
+ const std::string& error_message) override;
// VoicesChangedDelegate implementation.
- virtual void OnVoicesChanged() OVERRIDE;
+ void OnVoicesChanged() override;
private:
friend class content::BrowserThread;
DISALLOW_COPY_AND_ASSIGN(TtsMessageFilter);
};
-#endif // CHROME_BROWSER_SPEECH_TTS_MESSAGE_FILTER_H_
\ No newline at end of file
+#endif // CHROME_BROWSER_SPEECH_TTS_MESSAGE_FILTER_H_