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_TAB_CONTENTS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ |
jam
2012/08/10 16:13:30
it seems that all the infobar delegates should be
Jói
2012/08/13 11:47:54
Agreed for SimpleAlertInfoBarDelegate. InsecureCo
Peter Kasting
2012/08/13 17:36:51
InsecureContentInfoBarDelegate should not actually
| |
6 #define CHROME_BROWSER_TAB_CONTENTS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ |
7 | 7 |
8 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | 8 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" |
9 | 9 |
10 // Base class for delegates that show warnings on HTTPS pages which try to | 10 // Base class for delegates that show warnings on HTTPS pages which try to |
11 // display or run insecure content. | 11 // display or run insecure content. |
12 class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate { | 12 class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate { |
13 public: | 13 public: |
14 enum InfoBarType { | 14 enum InfoBarType { |
15 DISPLAY, // Shown when "inactive" content (e.g. images) has been blocked. | 15 DISPLAY, // Shown when "inactive" content (e.g. images) has been blocked. |
16 RUN, // Shown when "active" content (e.g. script) has been blocked. | 16 RUN, // Shown when "active" content (e.g. script) has been blocked. |
17 }; | 17 }; |
18 | 18 |
(...skipping 25 matching lines...) Expand all Loading... | |
44 virtual bool Accept() OVERRIDE; | 44 virtual bool Accept() OVERRIDE; |
45 virtual bool Cancel() OVERRIDE; | 45 virtual bool Cancel() OVERRIDE; |
46 virtual string16 GetLinkText() const OVERRIDE; | 46 virtual string16 GetLinkText() const OVERRIDE; |
47 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; | 47 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; |
48 | 48 |
49 InfoBarType type_; | 49 InfoBarType type_; |
50 | 50 |
51 DISALLOW_IMPLICIT_CONSTRUCTORS(InsecureContentInfoBarDelegate); | 51 DISALLOW_IMPLICIT_CONSTRUCTORS(InsecureContentInfoBarDelegate); |
52 }; | 52 }; |
53 | 53 |
54 #endif // CHROME_BROWSER_TAB_CONTENTS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ | 54 #endif // CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ |
55 | 55 |
OLD | NEW |