OLD | NEW |
(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_ |
OLD | NEW |