| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_BRIDGE_H_ | 6 #define CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 jint num_sites); | 34 jint num_sites); |
| 35 | 35 |
| 36 void AddOrRemoveBlacklistedUrl( | 36 void AddOrRemoveBlacklistedUrl( |
| 37 JNIEnv* env, | 37 JNIEnv* env, |
| 38 const base::android::JavaParamRef<jobject>& obj, | 38 const base::android::JavaParamRef<jobject>& obj, |
| 39 const base::android::JavaParamRef<jstring>& j_url, | 39 const base::android::JavaParamRef<jstring>& j_url, |
| 40 jboolean add_url); | 40 jboolean add_url); |
| 41 void RecordTileTypeMetrics( | 41 void RecordTileTypeMetrics( |
| 42 JNIEnv* env, | 42 JNIEnv* env, |
| 43 const base::android::JavaParamRef<jobject>& obj, | 43 const base::android::JavaParamRef<jobject>& obj, |
| 44 const base::android::JavaParamRef<jintArray>& jtile_types); | 44 const base::android::JavaParamRef<jintArray>& jtile_types, |
| 45 const base::android::JavaParamRef<jintArray>& jsources, |
| 46 const base::android::JavaParamRef<jintArray>& jprovider_indices); |
| 45 void RecordOpenedMostVisitedItem( | 47 void RecordOpenedMostVisitedItem( |
| 46 JNIEnv* env, | 48 JNIEnv* env, |
| 47 const base::android::JavaParamRef<jobject>& obj, | 49 const base::android::JavaParamRef<jobject>& obj, |
| 48 jint index, | 50 jint index, |
| 49 jint tile_type); | 51 jint tile_type); |
| 50 | 52 |
| 51 // Registers JNI methods. | 53 // Registers JNI methods. |
| 52 static bool Register(JNIEnv* env); | 54 static bool Register(JNIEnv* env); |
| 53 | 55 |
| 54 private: | 56 private: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 78 register_observer_; | 80 register_observer_; |
| 79 }; | 81 }; |
| 80 SupervisorBridge supervisor_; | 82 SupervisorBridge supervisor_; |
| 81 | 83 |
| 82 ntp_tiles::MostVisitedSites most_visited_; | 84 ntp_tiles::MostVisitedSites most_visited_; |
| 83 | 85 |
| 84 DISALLOW_COPY_AND_ASSIGN(MostVisitedSitesBridge); | 86 DISALLOW_COPY_AND_ASSIGN(MostVisitedSitesBridge); |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 #endif // CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_BRIDGE_H_ | 89 #endif // CHROME_BROWSER_ANDROID_NTP_MOST_VISITED_SITES_BRIDGE_H_ |
| OLD | NEW |