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

Unified Diff: components/infobars/core/infobar_manager.h

Issue 812823002: Remove dependency of infobars component on the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on Android Created 6 years 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
« no previous file with comments | « components/infobars/core/confirm_infobar_delegate.cc ('k') | components/infobars/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/infobars/core/infobar_manager.h
diff --git a/components/infobars/core/infobar_manager.h b/components/infobars/core/infobar_manager.h
index 532566ef6621e32761c1662d8050351829e1b6d1..5685a030316e17e7d189a913a4317fce2685cc9c 100644
--- a/components/infobars/core/infobar_manager.h
+++ b/components/infobars/core/infobar_manager.h
@@ -11,6 +11,8 @@
#include "base/observer_list.h"
#include "components/infobars/core/infobar_delegate.h"
+class ConfirmInfoBarDelegate;
+
namespace content {
class WebContents;
}
@@ -94,6 +96,10 @@ class InfoBarManager {
// Returns the active entry ID.
virtual int GetActiveEntryID() = 0;
+ // Returns a confirm infobar that owns |delegate|.
+ virtual scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar(
+ scoped_ptr<ConfirmInfoBarDelegate> delegate) = 0;
+
protected:
// Notifies the observer in |observer_list_|.
// TODO(droger): Absorb these methods back into their callers once virtual
« no previous file with comments | « components/infobars/core/confirm_infobar_delegate.cc ('k') | components/infobars/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698