Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h

Issue 384853002: Add notification of data reduction proxy field trial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_INFO_BAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROXY_INFO_BAR_H_
7
gone 2014/07/11 21:50:15 random newlines
bengr 2014/07/11 23:02:24 Done.
8
9
10 #include "base/basictypes.h"
11 #include "base/strings/string16.h"
12 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h"
13 #include "chrome/browser/ui/android/infobars/confirm_infobar.h"
14
15 class DataReductionProxyInfoBar : public ConfirmInfoBar {
16 public:
17 static void Launch(JNIEnv* env, jclass, jobject jweb_contents);
18 static bool Register(JNIEnv* env);
19 explicit DataReductionProxyInfoBar(
20 scoped_ptr<DataReductionProxyInfoBarDelegate> delegate);
21 virtual ~DataReductionProxyInfoBar();
22
23 private:
24 //ConfirmInfoBar:
25 virtual base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
26 JNIEnv* env) OVERRIDE;
27
28 DataReductionProxyInfoBarDelegate* GetDelegate();
29
30 base::android::ScopedJavaGlobalRef<jobject>
31 java_data_reduction_proxy_delegate_;
32
33 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyInfoBar);
34 };
35
36 bool RegisterDataReductionProxyInfoBar(JNIEnv* env);
37
38 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROXY_INFO_BAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698