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

Unified Diff: chrome/browser/android/instantapps/instant_apps_settings.h

Issue 2379783002: Instant App Banner logic. (Closed)
Patch Set: Alphabetize and rename constants Created 4 years, 3 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/android/instantapps/instant_apps_settings.h
diff --git a/chrome/browser/android/instantapps/instant_apps_settings.h b/chrome/browser/android/instantapps/instant_apps_settings.h
new file mode 100644
index 0000000000000000000000000000000000000000..648f3b865147c29b0600d3efdbd99d3d1a2e06dd
--- /dev/null
+++ b/chrome/browser/android/instantapps/instant_apps_settings.h
@@ -0,0 +1,31 @@
+// Copyright 2016 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_ANDROID_INSTANTAPPS_INSTANT_APPS_SETTINGS_H_
+#define CHROME_BROWSER_ANDROID_INSTANTAPPS_INSTANT_APPS_SETTINGS_H_
+
+#include <jni.h>
+#include <string>
+#include "base/macros.h"
+
+namespace content {
+class WebContents;
+}
+
+class InstantAppsSettings {
Ted C 2016/09/30 18:01:34 some description here would be good
Maria 2016/09/30 20:35:18 Done.
+ public:
+ static const char kInstantAppsKey[];
+
+ static void RecordInfoBarShowEvent(content::WebContents* web_contents,
+ const std::string& url);
+ static void RecordInfoBarDismissEvent(content::WebContents* web_contents,
+ const std::string& url);
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(InstantAppsSettings);
+};
+
+// Register native methods.
+bool RegisterInstantAppsSettings(JNIEnv* env);
+
+#endif // CHROME_BROWSER_ANDROID_INSTANTAPPS_INSTANT_APPS_SETTINGS_H_

Powered by Google App Engine
This is Rietveld 408576698