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

Unified 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: proofread 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h
diff --git a/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h b/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h
new file mode 100644
index 0000000000000000000000000000000000000000..320c3a21e501d2581e16a3d426104012cb2605a7
--- /dev/null
+++ b/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h
@@ -0,0 +1,36 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROXY_INFOBAR_H_
+#define CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROXY_INFOBAR_H_
+
+#include "base/basictypes.h"
+#include "base/strings/string16.h"
+#include "chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h"
+#include "chrome/browser/ui/android/infobars/confirm_infobar.h"
+
+class DataReductionProxyInfoBar : public ConfirmInfoBar {
+ public:
+ static void Launch(JNIEnv* env, jclass, jobject jweb_contents);
+ static bool Register(JNIEnv* env);
+ explicit DataReductionProxyInfoBar(
+ scoped_ptr<DataReductionProxyInfoBarDelegate> delegate);
+ virtual ~DataReductionProxyInfoBar();
+
+ private:
+ // ConfirmInfoBar:
+ virtual base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
+ JNIEnv* env) OVERRIDE;
+
+ DataReductionProxyInfoBarDelegate* GetDelegate();
+
+ base::android::ScopedJavaGlobalRef<jobject>
+ java_data_reduction_proxy_delegate_;
aruslan 2014/07/15 23:14:29 nit: +4?
bengr 2014/07/16 00:43:26 Style is unclear about this. For function declarat
+
+ DISALLOW_COPY_AND_ASSIGN(DataReductionProxyInfoBar);
+};
+
+bool RegisterDataReductionProxyInfoBar(JNIEnv* env);
+
+#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_DATA_REDUCTION_PROXY_INFOBAR_H_

Powered by Google App Engine
This is Rietveld 408576698