| Index: chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.cc
|
| diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.cc
|
| similarity index 50%
|
| rename from chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc
|
| rename to chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.cc
|
| index 94a0b12bdab07b47076b0073214142220b9a26f1..583ae735299a9b52f214fcaae9df103b5d2aa140 100644
|
| --- a/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc
|
| +++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.cc
|
| @@ -2,7 +2,7 @@
|
| // 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/net/spdyproxy/data_reduction_proxy_infobar_delegate_android.h"
|
|
|
| #include "base/memory/scoped_ptr.h"
|
| #include "chrome/browser/infobars/infobar_service.h"
|
| @@ -14,44 +14,44 @@
|
| #include "url/gurl.h"
|
|
|
| // static
|
| -void DataReductionProxyInfoBarDelegate::Create(
|
| - content::WebContents* web_contents, const std::string& link_url) {
|
| +void DataReductionProxyInfoBarDelegateAndroid::Create(
|
| + content::WebContents* web_contents,
|
| + const std::string& link_url) {
|
| InfoBarService* infobar_service =
|
| InfoBarService::FromWebContents(web_contents);
|
| infobar_service->AddInfoBar(
|
| - DataReductionProxyInfoBarDelegate::CreateInfoBar(
|
| + DataReductionProxyInfoBarDelegateAndroid::CreateInfoBar(
|
| infobar_service,
|
| - scoped_ptr<DataReductionProxyInfoBarDelegate>(
|
| - new DataReductionProxyInfoBarDelegate(link_url))));
|
| + scoped_ptr<DataReductionProxyInfoBarDelegateAndroid>(
|
| + new DataReductionProxyInfoBarDelegateAndroid(link_url))));
|
| }
|
|
|
| -DataReductionProxyInfoBarDelegate::~DataReductionProxyInfoBarDelegate() {
|
| -}
|
| +DataReductionProxyInfoBarDelegateAndroid::
|
| + ~DataReductionProxyInfoBarDelegateAndroid() {}
|
|
|
| -DataReductionProxyInfoBarDelegate::DataReductionProxyInfoBarDelegate(
|
| - const std::string& link_url)
|
| - : ConfirmInfoBarDelegate(),
|
| - link_url_(link_url) {
|
| -}
|
| +DataReductionProxyInfoBarDelegateAndroid::
|
| + DataReductionProxyInfoBarDelegateAndroid(const std::string& link_url)
|
| + : ConfirmInfoBarDelegate(), link_url_(link_url) {}
|
|
|
| -bool DataReductionProxyInfoBarDelegate::ShouldExpire(
|
| +bool DataReductionProxyInfoBarDelegateAndroid::ShouldExpire(
|
| const NavigationDetails& details) const {
|
| return false;
|
| }
|
|
|
| -base::string16 DataReductionProxyInfoBarDelegate::GetMessageText() const {
|
| +base::string16 DataReductionProxyInfoBarDelegateAndroid::GetMessageText()
|
| + const {
|
| return base::string16();
|
| }
|
|
|
| -int DataReductionProxyInfoBarDelegate::GetButtons() const {
|
| +int DataReductionProxyInfoBarDelegateAndroid::GetButtons() const {
|
| return BUTTON_NONE;
|
| }
|
|
|
| -GURL DataReductionProxyInfoBarDelegate::GetLinkURL() const {
|
| +GURL DataReductionProxyInfoBarDelegateAndroid::GetLinkURL() const {
|
| return GURL(link_url_);
|
| }
|
|
|
| -bool DataReductionProxyInfoBarDelegate::LinkClicked(
|
| +bool DataReductionProxyInfoBarDelegateAndroid::LinkClicked(
|
| WindowOpenDisposition disposition) {
|
| ConfirmInfoBarDelegate::LinkClicked(disposition);
|
| return true;
|
|
|