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

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

Issue 289083004: infobars: Componentize ConfirmInfoBarDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/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
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
OLDNEW
« no previous file with comments | « chrome/browser/infobars/confirm_infobar_delegate.cc ('k') | chrome/browser/infobars/simple_alert_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698