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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.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/net/spdyproxy/data_reduction_proxy_infobar_delegate.h
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h
index 85516b9f75f1ad186bc4311221dc7e0e07dd26d1..4413803a3eed8f9646e5498b956bbe7ad3e416c2 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h
@@ -14,6 +14,10 @@ namespace content {
class WebContents;
}
+namespace infobars {
+class InfoBarManager;
+}
Peter Kasting 2014/12/19 23:06:23 This forward-decl doesn't seem to be needed?
sdefresne 2014/12/20 11:30:55 It is in fact required to allow Android code to pr
Peter Kasting 2014/12/22 19:22:05 I don't understand why the forward-decl is needed
sdefresne 2014/12/22 20:48:41 Sorry, I was again unclear. I planned to remove th
+
// Configures an InfoBar with no buttons that stays visible until it is
// explicitly dismissed. This InfoBar is suitable for displaying a message
// and a link, and is used only by an Android field trial.
@@ -28,10 +32,6 @@ class DataReductionProxyInfoBarDelegate : public ConfirmInfoBarDelegate {
private:
explicit DataReductionProxyInfoBarDelegate(const std::string& link_url);
- // Returns a Data Reduction Proxy infobar that owns |delegate|.
- static scoped_ptr<infobars::InfoBar> CreateInfoBar(
- scoped_ptr<DataReductionProxyInfoBarDelegate> delegate);
-
// ConfirmInfoBarDelegate
base::string16 GetMessageText() const override;
int GetButtons() const override;

Powered by Google App Engine
This is Rietveld 408576698