OLD | NEW |
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/browser/infobars/confirm_infobar_delegate.h" | 9 #include "chrome/browser/infobars/confirm_infobar_delegate.h" |
10 #include "chrome/common/custom_handlers/protocol_handler.h" | 10 #include "chrome/common/custom_handlers/protocol_handler.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 RegisterProtocolHandlerInfoBarDelegate(InfoBarService* infobar_service, | 28 RegisterProtocolHandlerInfoBarDelegate(InfoBarService* infobar_service, |
29 ProtocolHandlerRegistry* registry, | 29 ProtocolHandlerRegistry* registry, |
30 const ProtocolHandler& handler); | 30 const ProtocolHandler& handler); |
31 virtual ~RegisterProtocolHandlerInfoBarDelegate(); | 31 virtual ~RegisterProtocolHandlerInfoBarDelegate(); |
32 | 32 |
33 // ConfirmInfoBarDelegate: | 33 // ConfirmInfoBarDelegate: |
34 virtual InfoBarAutomationType GetInfoBarAutomationType() const OVERRIDE; | 34 virtual InfoBarAutomationType GetInfoBarAutomationType() const OVERRIDE; |
35 virtual Type GetInfoBarType() const OVERRIDE; | 35 virtual Type GetInfoBarType() const OVERRIDE; |
36 virtual RegisterProtocolHandlerInfoBarDelegate* | 36 virtual RegisterProtocolHandlerInfoBarDelegate* |
37 AsRegisterProtocolHandlerInfoBarDelegate() OVERRIDE; | 37 AsRegisterProtocolHandlerInfoBarDelegate() OVERRIDE; |
38 virtual string16 GetMessageText() const OVERRIDE; | 38 virtual base::string16 GetMessageText() const OVERRIDE; |
39 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; | 39 virtual base::string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
40 virtual bool NeedElevation(InfoBarButton button) const OVERRIDE; | 40 virtual bool NeedElevation(InfoBarButton button) const OVERRIDE; |
41 virtual bool Accept() OVERRIDE; | 41 virtual bool Accept() OVERRIDE; |
42 virtual bool Cancel() OVERRIDE; | 42 virtual bool Cancel() OVERRIDE; |
43 virtual string16 GetLinkText() const OVERRIDE; | 43 virtual base::string16 GetLinkText() const OVERRIDE; |
44 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; | 44 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; |
45 | 45 |
46 // Returns a user-friendly name for the protocol of this protocol handler. | 46 // Returns a user-friendly name for the protocol of this protocol handler. |
47 string16 GetProtocolName(const ProtocolHandler& handler) const; | 47 base::string16 GetProtocolName(const ProtocolHandler& handler) const; |
48 | 48 |
49 ProtocolHandlerRegistry* registry_; | 49 ProtocolHandlerRegistry* registry_; |
50 ProtocolHandler handler_; | 50 ProtocolHandler handler_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate); | 52 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate); |
53 }; | 53 }; |
54 | 54 |
55 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE
GATE_H_ | 55 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE
GATE_H_ |
OLD | NEW |