Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / android / infobars / data_reduction_proxy_infobar.h
blob2a22524667bcbf3d2f2ccce5f4c952319eb946d7
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.
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROXY_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROXY_INFOBAR_H_
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"
13 class DataReductionProxyInfoBar : public ConfirmInfoBar {
14 public:
15 static void Launch(JNIEnv* env,
16 jclass,
17 jobject jweb_contents,
18 jstring jlink_url);
20 static bool Register(JNIEnv* env);
22 explicit DataReductionProxyInfoBar(
23 scoped_ptr<DataReductionProxyInfoBarDelegate> delegate);
25 ~DataReductionProxyInfoBar() override;
27 private:
28 // ConfirmInfoBar:
29 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
30 JNIEnv* env) override;
32 DataReductionProxyInfoBarDelegate* GetDelegate();
34 base::android::ScopedJavaGlobalRef<jobject>
35 java_data_reduction_proxy_delegate_;
37 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyInfoBar);
40 bool RegisterDataReductionProxyInfoBar(JNIEnv* env);
42 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROXY_INFOBAR_H_