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_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ |
7 | 7 |
8 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | 8 #include "components/infobars/core/confirm_infobar_delegate.h" |
9 | 9 |
10 class InfoBarService; | 10 class InfoBarService; |
11 | 11 |
12 // Base class for delegates that show warnings on HTTPS pages which try to | 12 // Base class for delegates that show warnings on HTTPS pages which try to |
13 // display or run insecure content. | 13 // display or run insecure content. |
14 class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate { | 14 class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate { |
15 public: | 15 public: |
16 enum InfoBarType { | 16 enum InfoBarType { |
17 DISPLAY, // Shown when "inactive" content (e.g. images) has been blocked. | 17 DISPLAY, // Shown when "inactive" content (e.g. images) has been blocked. |
18 RUN, // Shown when "active" content (e.g. script) has been blocked. | 18 RUN, // Shown when "active" content (e.g. script) has been blocked. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual base::string16 GetLinkText() const OVERRIDE; | 51 virtual base::string16 GetLinkText() const OVERRIDE; |
52 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; | 52 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; |
53 | 53 |
54 InfoBarType type_; | 54 InfoBarType type_; |
55 | 55 |
56 DISALLOW_IMPLICIT_CONSTRUCTORS(InsecureContentInfoBarDelegate); | 56 DISALLOW_IMPLICIT_CONSTRUCTORS(InsecureContentInfoBarDelegate); |
57 }; | 57 }; |
58 | 58 |
59 #endif // CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ | 59 #endif // CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ |
60 | 60 |
OLD | NEW |