| 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/ui/android/infobars/data_reduction_proxy_infobar.h" | 5 #include "chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/browser/android/resource_mapper.h" | 10 #include "chrome/browser/android/resource_mapper.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // static | 56 // static |
| 57 scoped_ptr<infobars::InfoBar> DataReductionProxyInfoBarDelegate::CreateInfoBar( | 57 scoped_ptr<infobars::InfoBar> DataReductionProxyInfoBarDelegate::CreateInfoBar( |
| 58 infobars::InfoBarManager* infobar_manager, | 58 infobars::InfoBarManager* infobar_manager, |
| 59 scoped_ptr<DataReductionProxyInfoBarDelegate> delegate) { | 59 scoped_ptr<DataReductionProxyInfoBarDelegate> delegate) { |
| 60 return scoped_ptr<infobars::InfoBar>( | 60 return scoped_ptr<infobars::InfoBar>( |
| 61 new DataReductionProxyInfoBar(delegate.Pass())); | 61 new DataReductionProxyInfoBar(delegate.Pass())); |
| 62 } | 62 } |
| 63 | 63 |
| 64 | 64 |
| 65 // JNI for DataReductionProxyInfoBarDelegate. | 65 // JNI for DataReductionProxyInfoBarDelegate. |
| 66 void | 66 void Launch(JNIEnv* env, |
| 67 Launch(JNIEnv* env, jclass clazz, jobject jweb_contents, jstring jlink_url) { | 67 const JavaParamRef<jclass>& clazz, |
| 68 const JavaParamRef<jobject>& jweb_contents, |
| 69 const JavaParamRef<jstring>& jlink_url) { |
| 68 DataReductionProxyInfoBar::Launch(env, clazz, jweb_contents, jlink_url); | 70 DataReductionProxyInfoBar::Launch(env, clazz, jweb_contents, jlink_url); |
| 69 } | 71 } |
| OLD | NEW |