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

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

Issue 10843071: Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/insecure_content_infobar_delegate.h
diff --git a/chrome/browser/tab_contents/insecure_content_infobar_delegate.h b/chrome/browser/tab_contents/insecure_content_infobar_delegate.h
deleted file mode 100644
index 0e7557bdc717229cdf9085e40110c95e9a523f69..0000000000000000000000000000000000000000
--- a/chrome/browser/tab_contents/insecure_content_infobar_delegate.h
+++ /dev/null
@@ -1,55 +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_TAB_CONTENTS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_
-#define CHROME_BROWSER_TAB_CONTENTS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_
-
-#include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
-
-// Base class for delegates that show warnings on HTTPS pages which try to
-// display or run insecure content.
-class InsecureContentInfoBarDelegate : public ConfirmInfoBarDelegate {
- public:
- enum InfoBarType {
- DISPLAY, // Shown when "inactive" content (e.g. images) has been blocked.
- RUN, // Shown when "active" content (e.g. script) has been blocked.
- };
-
- InsecureContentInfoBarDelegate(InfoBarTabHelper* infobar_helper,
- InfoBarType type);
- virtual ~InsecureContentInfoBarDelegate();
-
- InfoBarType type() const { return type_; }
-
- 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.
- RUN_INFOBAR_SHOWN,
- RUN_USER_OVERRIDE,
- RUN_USER_DID_NOT_LOAD,
- RUN_INFOBAR_DISMISSED,
- NUM_EVENTS
- };
-
- // ConfirmInfoBarDelegate:
- virtual void InfoBarDismissed() OVERRIDE;
- virtual InsecureContentInfoBarDelegate*
- AsInsecureContentInfoBarDelegate() OVERRIDE;
- virtual string16 GetMessageText() const OVERRIDE;
- virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE;
- virtual bool Accept() OVERRIDE;
- virtual bool Cancel() OVERRIDE;
- virtual string16 GetLinkText() const OVERRIDE;
- virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
-
- InfoBarType type_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(InsecureContentInfoBarDelegate);
-};
-
-#endif // CHROME_BROWSER_TAB_CONTENTS_INSECURE_CONTENT_INFOBAR_DELEGATE_H_
-

Powered by Google App Engine
This is Rietveld 408576698