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/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" |
11 | 11 |
12 class InfoBarService; | 12 class InfoBarService; |
13 class ProtocolHandlerRegistry; | 13 class ProtocolHandlerRegistry; |
14 | 14 |
15 // An InfoBar delegate that enables the user to allow or deny storing credit | 15 // An InfoBar delegate that enables the user to allow or deny storing credit |
16 // card information gathered from a form submission. | 16 // card information gathered from a form submission. |
17 class RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { | 17 class RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { |
18 public: | 18 public: |
(...skipping 25 matching lines...) Expand all Loading... |
44 // Returns a user-friendly name for the protocol of this protocol handler. | 44 // Returns a user-friendly name for the protocol of this protocol handler. |
45 string16 GetProtocolName(const ProtocolHandler& handler) const; | 45 string16 GetProtocolName(const ProtocolHandler& handler) const; |
46 | 46 |
47 ProtocolHandlerRegistry* registry_; | 47 ProtocolHandlerRegistry* registry_; |
48 ProtocolHandler handler_; | 48 ProtocolHandler handler_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate); | 50 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate); |
51 }; | 51 }; |
52 | 52 |
53 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE
GATE_H_ | 53 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE
GATE_H_ |
OLD | NEW |