OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROXY_INFOBAR_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROXY_INFOBAR_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/strings/string16.h" |
| 10 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h" |
| 11 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
| 12 |
| 13 class DataReductionProxyInfoBar : public ConfirmInfoBar { |
| 14 public: |
| 15 static void Launch(JNIEnv* env, jclass, jobject jweb_contents); |
| 16 |
| 17 static bool Register(JNIEnv* env); |
| 18 |
| 19 explicit DataReductionProxyInfoBar( |
| 20 scoped_ptr<DataReductionProxyInfoBarDelegate> delegate); |
| 21 |
| 22 virtual ~DataReductionProxyInfoBar(); |
| 23 |
| 24 private: |
| 25 // ConfirmInfoBar: |
| 26 virtual base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
| 27 JNIEnv* env) OVERRIDE; |
| 28 |
| 29 DataReductionProxyInfoBarDelegate* GetDelegate(); |
| 30 |
| 31 base::android::ScopedJavaGlobalRef<jobject> |
| 32 java_data_reduction_proxy_delegate_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyInfoBar); |
| 35 }; |
| 36 |
| 37 bool RegisterDataReductionProxyInfoBar(JNIEnv* env); |
| 38 |
| 39 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROXY_INFOBAR_H_ |
OLD | NEW |