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

Unified Diff: chrome/browser/infobars/infobar_service.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 android compilation 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
Index: chrome/browser/infobars/infobar_service.h
diff --git a/chrome/browser/infobars/infobar_service.h b/chrome/browser/infobars/infobar_service.h
index 985b7c0a4dbc1dc49750fec14dcda08b837188b9..89e94dbef15163a0d1b0b1e60d8d954662534258 100644
--- a/chrome/browser/infobars/infobar_service.h
+++ b/chrome/browser/infobars/infobar_service.h
@@ -45,19 +45,24 @@ class InfoBarService : public infobars::InfoBarManager,
// changes.
void set_ignore_next_reload() { ignore_next_reload_ = true; }
- private:
- friend class content::WebContentsUserData<InfoBarService>;
-
- explicit InfoBarService(content::WebContents* web_contents);
- ~InfoBarService() override;
-
// InfoBarManager:
Peter Kasting 2014/12/19 23:06:23 Why make these public instead of private? Normall
sdefresne 2014/12/20 11:30:55 I need to make CreateConfirmInfoBar() public since
Peter Kasting 2014/12/22 19:22:05 It may not be good to make all clients use an Info
int GetActiveEntryID() override;
+ scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar(
+ scoped_ptr<ConfirmInfoBarDelegate> delegate) override;
+
+ protected:
+ // InfoBarManager:
// TODO(droger): Remove these functions once infobar notifications are
// removed. See http://crbug.com/354380
void NotifyInfoBarAdded(infobars::InfoBar* infobar) override;
void NotifyInfoBarRemoved(infobars::InfoBar* infobar, bool animate) override;
+ private:
+ friend class content::WebContentsUserData<InfoBarService>;
+
+ explicit InfoBarService(content::WebContents* web_contents);
+ ~InfoBarService() override;
+
// content::WebContentsObserver:
void RenderProcessGone(base::TerminationStatus status) override;
void DidStartNavigationToPendingEntry(

Powered by Google App Engine
This is Rietveld 408576698