Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: chrome/browser/infobars/insecure_content_infobar_delegate.h

Issue 10830353: Introduce InfoBarTabService API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments, merge to LKGR Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/api/infobars/confirm_infobar_delegate.h" 8 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h"
9 9
10 class InfoBarTabHelper;
11
10 // 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
11 // display or run insecure content. 13 // display or run insecure content.
12 class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate { 14 class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate {
13 public: 15 public:
14 enum InfoBarType { 16 enum InfoBarType {
15 DISPLAY, // Shown when "inactive" content (e.g. images) has been blocked. 17 DISPLAY, // Shown when "inactive" content (e.g. images) has been blocked.
16 RUN, // Shown when "active" content (e.g. script) has been blocked. 18 RUN, // Shown when "active" content (e.g. script) has been blocked.
17 }; 19 };
18 20
19 InsecureContentInfoBarDelegate(InfoBarTabHelper* infobar_helper, 21 InsecureContentInfoBarDelegate(InfoBarTabHelper* infobar_helper,
(...skipping 26 matching lines...) Expand all
46 virtual string16 GetLinkText() const OVERRIDE; 48 virtual string16 GetLinkText() const OVERRIDE;
47 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE; 49 virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
48 50
49 InfoBarType type_; 51 InfoBarType type_;
50 52
51 DISALLOW_IMPLICIT_CONSTRUCTORS(InsecureContentInfoBarDelegate); 53 DISALLOW_IMPLICIT_CONSTRUCTORS(InsecureContentInfoBarDelegate);
52 }; 54 };
53 55
54 #endif // CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_ 56 #endif // CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_
55 57
OLDNEW
« no previous file with comments | « chrome/browser/infobars/infobars_browsertest.cc ('k') | chrome/browser/infobars/insecure_content_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698