OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROMO_INFOBAR_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROMO_INFOBAR_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/strings/string16.h" |
| 10 #include "chrome/browser/net/spdyproxy/data_reduction_promo_infobar_delegate_and
roid.h" |
| 11 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
| 12 |
| 13 class DataReductionPromoInfoBar : public ConfirmInfoBar { |
| 14 public: |
| 15 explicit DataReductionPromoInfoBar( |
| 16 std::unique_ptr<DataReductionPromoInfoBarDelegateAndroid> delegate); |
| 17 |
| 18 ~DataReductionPromoInfoBar() override; |
| 19 |
| 20 private: |
| 21 // ConfirmInfoBar: |
| 22 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
| 23 JNIEnv* env) override; |
| 24 |
| 25 DataReductionPromoInfoBarDelegateAndroid* GetDelegate(); |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(DataReductionPromoInfoBar); |
| 28 }; |
| 29 |
| 30 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROMO_INFOBAR_H_ |
OLD | NEW |