Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELEGAT E_H_ 5 #ifndef CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELEGAT E_H_
6 #define CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELEGAT E_H_ 6 #define CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELEGAT E_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "chrome/common/custom_handlers/protocol_handler.h" 9 #include "chrome/common/custom_handlers/protocol_handler.h"
10 #include "components/infobars/core/confirm_infobar_delegate.h" 10 #include "components/infobars/core/confirm_infobar_delegate.h"
(...skipping 12 matching lines...) Expand all
23 static void Create(InfoBarService* infobar_service, 23 static void Create(InfoBarService* infobar_service,
24 ProtocolHandlerRegistry* registry, 24 ProtocolHandlerRegistry* registry,
25 const ProtocolHandler& handler); 25 const ProtocolHandler& handler);
26 26
27 private: 27 private:
28 RegisterProtocolHandlerInfoBarDelegate(ProtocolHandlerRegistry* registry, 28 RegisterProtocolHandlerInfoBarDelegate(ProtocolHandlerRegistry* registry,
29 const ProtocolHandler& handler); 29 const ProtocolHandler& handler);
30 virtual ~RegisterProtocolHandlerInfoBarDelegate(); 30 virtual ~RegisterProtocolHandlerInfoBarDelegate();
31 31
32 // ConfirmInfoBarDelegate: 32 // ConfirmInfoBarDelegate:
33 virtual InfoBarAutomationType GetInfoBarAutomationType() const OVERRIDE; 33 virtual InfoBarAutomationType GetInfoBarAutomationType() const override;
34 virtual Type GetInfoBarType() const OVERRIDE; 34 virtual Type GetInfoBarType() const override;
35 virtual RegisterProtocolHandlerInfoBarDelegate* 35 virtual RegisterProtocolHandlerInfoBarDelegate*
36 AsRegisterProtocolHandlerInfoBarDelegate() OVERRIDE; 36 AsRegisterProtocolHandlerInfoBarDelegate() override;
37 virtual base::string16 GetMessageText() const OVERRIDE; 37 virtual base::string16 GetMessageText() const override;
38 virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; 38 virtual base::string16 GetButtonLabel(InfoBarButton button) const override;
39 virtual bool OKButtonTriggersUACPrompt() const OVERRIDE; 39 virtual bool OKButtonTriggersUACPrompt() const override;
40 virtual bool Accept() OVERRIDE; 40 virtual bool Accept() override;
41 virtual bool Cancel() OVERRIDE; 41 virtual bool Cancel() override;
42 virtual base::string16 GetLinkText() const OVERRIDE; 42 virtual base::string16 GetLinkText() const override;
43 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 43 virtual bool LinkClicked(WindowOpenDisposition disposition) override;
44 44
45 // Returns a user-friendly name for the protocol of this protocol handler. 45 // Returns a user-friendly name for the protocol of this protocol handler.
46 base::string16 GetProtocolName(const ProtocolHandler& handler) const; 46 base::string16 GetProtocolName(const ProtocolHandler& handler) const;
47 47
48 ProtocolHandlerRegistry* registry_; 48 ProtocolHandlerRegistry* registry_;
49 ProtocolHandler handler_; 49 ProtocolHandler handler_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate); 51 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate);
52 }; 52 };
53 53
54 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE GATE_H_ 54 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE GATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698