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

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

Issue 384853002: Add notification of data reduction proxy field trial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: proofread Created 6 years, 5 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.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2c2c026fd29581898057c6f3ca7741ed10dfbe23
--- /dev/null
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc
@@ -0,0 +1,38 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h"
+
+#include "chrome/browser/infobars/infobar_service.h"
+#include "components/infobars/core/infobar.h"
+#include "content/public/browser/web_contents.h"
+
+// static
+void DataReductionProxyInfoBarDelegate::Create(
+ content::WebContents* web_contents) {
+ InfoBarService::FromWebContents(web_contents)->AddInfoBar(
+ DataReductionProxyInfoBarDelegate::CreateInfoBar(
+ scoped_ptr<DataReductionProxyInfoBarDelegate>(
+ new DataReductionProxyInfoBarDelegate())));
+}
+
+DataReductionProxyInfoBarDelegate::~DataReductionProxyInfoBarDelegate() {
+}
+
+DataReductionProxyInfoBarDelegate::DataReductionProxyInfoBarDelegate()
+ : ConfirmInfoBarDelegate() {
+}
+
+bool DataReductionProxyInfoBarDelegate::ShouldExpire(
+ const NavigationDetails& details) const {
+ return false;
+}
+
+base::string16 DataReductionProxyInfoBarDelegate::GetMessageText() const {
+ return base::string16();
+}
+
+int DataReductionProxyInfoBarDelegate::GetButtons() const {
+ return BUTTON_NONE;
+}

Powered by Google App Engine
This is Rietveld 408576698