diff options
author | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 17:47:08 +0000 |
---|---|---|
committer | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 17:47:08 +0000 |
commit | 3e7cf136004dd8f5a8e521360b5d602e7b1af0c2 (patch) | |
tree | 3f78cab4b9f030786bfb0224e479282770c46d24 /chrome/browser/blocked_popup_container.h | |
parent | 7ed6bc6bcd311741da22bf45d8a88f5de89eadf8 (diff) | |
download | chromium_src-3e7cf136004dd8f5a8e521360b5d602e7b1af0c2.zip chromium_src-3e7cf136004dd8f5a8e521360b5d602e7b1af0c2.tar.gz chromium_src-3e7cf136004dd8f5a8e521360b5d602e7b1af0c2.tar.bz2 |
Send notice for blackisted non-visual resources
This is just the piping to call into the blocked_popup_container
(which shall be later renamed and expanded to a generalized blocked
resource container) from the browser's request context.
BUG=16932
TEST=none
Review URL: http://codereview.chromium.org/171109
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23973 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/blocked_popup_container.h')
-rw-r--r-- | chrome/browser/blocked_popup_container.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/blocked_popup_container.h b/chrome/browser/blocked_popup_container.h index ebffd23..d7e5d0e 100644 --- a/chrome/browser/blocked_popup_container.h +++ b/chrome/browser/blocked_popup_container.h @@ -7,6 +7,8 @@ // TabContents should use the appropriate methods on TabContents to access // information about blocked popups. +// TODO(idanan): Rename class to BlockedContentContainer. + #ifndef CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ #define CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ @@ -17,6 +19,7 @@ #include "base/gfx/native_widget_types.h" #include "base/gfx/rect.h" +#include "base/string16.h" #include "chrome/browser/tab_contents/constrained_window.h" #include "chrome/browser/tab_contents/tab_contents_delegate.h" #include "chrome/common/notification_registrar.h" @@ -100,6 +103,9 @@ class BlockedPopupContainer : public TabContentsDelegate, // Returns the number of blocked popups size_t GetBlockedPopupCount() const; + // Adds a blocked notice if one is not already there for the same host. + void AddBlockedNotice(const GURL& url, const string16& reason); + // Returns true if host |index| is whitelisted. Returns false if |index| is // invalid. bool IsHostWhitelisted(size_t index) const; |