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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h

Issue 581833002: Updated alternative data reduction proxy UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flag-for-ssl-experiment
Patch Set: Addressed comments from marq and tedchoc Created 6 years, 3 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/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 9f851e822bb4345a852b250225f4ce600e9d888d..3c7cc139954a2fb2777223d8f1ade0ac40225c8e 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h
@@ -20,12 +20,13 @@ class WebContents;
class DataReductionProxyInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
// Creates the InfoBar and adds it to the provided |web_contents|.
- static void Create(content::WebContents* web_contents);
+ static void Create(content::WebContents* web_contents,
+ const std::string& link_url);
virtual ~DataReductionProxyInfoBarDelegate();
private:
- DataReductionProxyInfoBarDelegate();
+ explicit DataReductionProxyInfoBarDelegate(const std::string& link_url);
// Returns a Data Reduction Proxy infobar that owns |delegate|.
static scoped_ptr<infobars::InfoBar> CreateInfoBar(
@@ -35,6 +36,9 @@ class DataReductionProxyInfoBarDelegate : public ConfirmInfoBarDelegate {
virtual base::string16 GetMessageText() const OVERRIDE;
virtual int GetButtons() const OVERRIDE;
virtual bool ShouldExpire(const NavigationDetails& details) const OVERRIDE;
+ virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
+
+ std::string link_url_;
DISALLOW_COPY_AND_ASSIGN(DataReductionProxyInfoBarDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698