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

Unified Diff: chrome/browser/infobars/insecure_content_infobar_delegate.h

Issue 2167513002: Remove InsecureContentInfobarDelegate, which has been broken for a while (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix AW? Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/infobars/insecure_content_infobar_delegate.h
diff --git a/chrome/browser/infobars/insecure_content_infobar_delegate.h b/chrome/browser/infobars/insecure_content_infobar_delegate.h
deleted file mode 100644
index 7403ad0f8080b6f4b0b277b89fdef84588794055..0000000000000000000000000000000000000000
--- a/chrome/browser/infobars/insecure_content_infobar_delegate.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_
-#define CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_
-
-#include "base/macros.h"
-#include "components/infobars/core/confirm_infobar_delegate.h"
-
-class InfoBarService;
-
-// Base class for delegates that show warnings on HTTPS pages which try to
-// display or run insecure content.
-class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate {
- public:
- // Creates an insecure content infobar and delegate and adds the infobar to
- // |infobar_service|, replacing any existing insecure content infobar.
- static void Create(InfoBarService* infobar_service);
-
- private:
- enum HistogramEvents {
- DISPLAY_INFOBAR_SHOWN = 0, // Infobar was displayed.
- DISPLAY_USER_OVERRIDE, // User clicked allow anyway button.
- DISPLAY_USER_DID_NOT_LOAD, // User clicked the don't load button.
- DISPLAY_INFOBAR_DISMISSED, // User clicked close button.
- NUM_EVENTS
- };
-
- InsecureContentInfoBarDelegate();
- ~InsecureContentInfoBarDelegate() override;
-
- // ConfirmInfoBarDelegate:
- infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
- void InfoBarDismissed() override;
- InsecureContentInfoBarDelegate* AsInsecureContentInfoBarDelegate() override;
- base::string16 GetMessageText() const override;
- base::string16 GetButtonLabel(InfoBarButton button) const override;
- bool Accept() override;
- bool Cancel() override;
- base::string16 GetLinkText() const override;
- GURL GetLinkURL() const override;
-
- DISALLOW_COPY_AND_ASSIGN(InsecureContentInfoBarDelegate);
-};
-
-#endif // CHROME_BROWSER_INFOBARS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_
-
« no previous file with comments | « chrome/browser/infobars/infobar_service.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