OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "chrome/browser/custom_handlers/protocol_handler.h" | 10 #include "chrome/browser/custom_handlers/protocol_handler.h" |
11 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | 11 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
12 | 12 |
13 class SkBitmap; | |
14 class ProtocolHandlerRegistry; | 13 class ProtocolHandlerRegistry; |
15 class TabContents; | 14 class TabContents; |
16 | 15 |
17 // An InfoBar delegate that enables the user to allow or deny storing credit | 16 // An InfoBar delegate that enables the user to allow or deny storing credit |
18 // card information gathered from a form submission. | 17 // card information gathered from a form submission. |
19 class RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { | 18 class RegisterProtocolHandlerInfoBarDelegate : public ConfirmInfoBarDelegate { |
20 public: | 19 public: |
21 RegisterProtocolHandlerInfoBarDelegate(TabContents* tab_contents, | 20 RegisterProtocolHandlerInfoBarDelegate(TabContents* tab_contents, |
22 ProtocolHandlerRegistry* registry, | 21 ProtocolHandlerRegistry* registry, |
23 ProtocolHandler handler); | 22 ProtocolHandler handler); |
(...skipping 11 matching lines...) Expand all Loading... |
35 | 34 |
36 private: | 35 private: |
37 TabContents* tab_contents_; | 36 TabContents* tab_contents_; |
38 ProtocolHandlerRegistry* registry_; | 37 ProtocolHandlerRegistry* registry_; |
39 ProtocolHandler handler_; | 38 ProtocolHandler handler_; |
40 | 39 |
41 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate); | 40 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerInfoBarDelegate); |
42 }; | 41 }; |
43 | 42 |
44 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE
GATE_H_ | 43 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_INFOBAR_DELE
GATE_H_ |
OLD | NEW |