| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_and
roid.h" | 5 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate_and
roid.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "chrome/browser/infobars/infobar_service.h" | 8 #include "chrome/browser/infobars/infobar_service.h" |
| 9 #include "components/infobars/core/infobar.h" | 9 #include "components/infobars/core/infobar.h" |
| 10 #include "components/infobars/core/infobar_delegate.h" | 10 #include "components/infobars/core/infobar_delegate.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 new DataReductionProxyInfoBarDelegateAndroid(link_url)))); | 26 new DataReductionProxyInfoBarDelegateAndroid(link_url)))); |
| 27 } | 27 } |
| 28 | 28 |
| 29 DataReductionProxyInfoBarDelegateAndroid:: | 29 DataReductionProxyInfoBarDelegateAndroid:: |
| 30 ~DataReductionProxyInfoBarDelegateAndroid() {} | 30 ~DataReductionProxyInfoBarDelegateAndroid() {} |
| 31 | 31 |
| 32 DataReductionProxyInfoBarDelegateAndroid:: | 32 DataReductionProxyInfoBarDelegateAndroid:: |
| 33 DataReductionProxyInfoBarDelegateAndroid(const std::string& link_url) | 33 DataReductionProxyInfoBarDelegateAndroid(const std::string& link_url) |
| 34 : ConfirmInfoBarDelegate(), link_url_(link_url) {} | 34 : ConfirmInfoBarDelegate(), link_url_(link_url) {} |
| 35 | 35 |
| 36 std::string DataReductionProxyInfoBarDelegateAndroid::GetIdentifier() const { |
| 37 return "DataReductionProxyInfoBarDelegateAndroid"; |
| 38 } |
| 39 |
| 36 bool DataReductionProxyInfoBarDelegateAndroid::ShouldExpire( | 40 bool DataReductionProxyInfoBarDelegateAndroid::ShouldExpire( |
| 37 const NavigationDetails& details) const { | 41 const NavigationDetails& details) const { |
| 38 return false; | 42 return false; |
| 39 } | 43 } |
| 40 | 44 |
| 41 base::string16 DataReductionProxyInfoBarDelegateAndroid::GetMessageText() | 45 base::string16 DataReductionProxyInfoBarDelegateAndroid::GetMessageText() |
| 42 const { | 46 const { |
| 43 return base::string16(); | 47 return base::string16(); |
| 44 } | 48 } |
| 45 | 49 |
| 46 int DataReductionProxyInfoBarDelegateAndroid::GetButtons() const { | 50 int DataReductionProxyInfoBarDelegateAndroid::GetButtons() const { |
| 47 return BUTTON_NONE; | 51 return BUTTON_NONE; |
| 48 } | 52 } |
| 49 | 53 |
| 50 GURL DataReductionProxyInfoBarDelegateAndroid::GetLinkURL() const { | 54 GURL DataReductionProxyInfoBarDelegateAndroid::GetLinkURL() const { |
| 51 return GURL(link_url_); | 55 return GURL(link_url_); |
| 52 } | 56 } |
| 53 | 57 |
| 54 bool DataReductionProxyInfoBarDelegateAndroid::LinkClicked( | 58 bool DataReductionProxyInfoBarDelegateAndroid::LinkClicked( |
| 55 WindowOpenDisposition disposition) { | 59 WindowOpenDisposition disposition) { |
| 56 ConfirmInfoBarDelegate::LinkClicked(disposition); | 60 ConfirmInfoBarDelegate::LinkClicked(disposition); |
| 57 return true; | 61 return true; |
| 58 } | 62 } |
| OLD | NEW |