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

Side by Side Diff: chrome/browser/android/instantapps/instant_apps_settings.h

Issue 2379783002: Instant App Banner logic. (Closed)
Patch Set: Fixing tests. Created 4 years, 2 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 2016 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_ANDROID_INSTANTAPPS_INSTANT_APPS_SETTINGS_H_
6 #define CHROME_BROWSER_ANDROID_INSTANTAPPS_INSTANT_APPS_SETTINGS_H_
7
8 #include <jni.h>
9 #include <string>
10 #include "base/macros.h"
11
12 namespace content {
13 class WebContents;
14 }
15
16 // Instant Apps banner events are stored with other app banner events, but
17 // with an instant app specific key. This class should be used to store and
18 // retrieve information about the Instant App banner events.
19 class InstantAppsSettings {
20 public:
21 static void RecordInfoBarShowEvent(content::WebContents* web_contents,
22 const std::string& url);
23 static void RecordInfoBarDismissEvent(content::WebContents* web_contents,
24 const std::string& url);
25 private:
26 DISALLOW_IMPLICIT_CONSTRUCTORS(InstantAppsSettings);
27 };
28
29 // Register native methods.
30 bool RegisterInstantAppsSettings(JNIEnv* env);
31
32 #endif // CHROME_BROWSER_ANDROID_INSTANTAPPS_INSTANT_APPS_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698