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_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_ANDROID_H_ |
6 #define CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_ANDROID_H_ | 6 #define CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 SiteEngagementService* service); | 29 SiteEngagementService* service); |
30 | 30 |
31 SiteEngagementServiceAndroid(JNIEnv* env, SiteEngagementService* service); | 31 SiteEngagementServiceAndroid(JNIEnv* env, SiteEngagementService* service); |
32 | 32 |
33 ~SiteEngagementServiceAndroid(); | 33 ~SiteEngagementServiceAndroid(); |
34 | 34 |
35 double GetScore(JNIEnv* env, | 35 double GetScore(JNIEnv* env, |
36 const base::android::JavaParamRef<jobject>& caller, | 36 const base::android::JavaParamRef<jobject>& caller, |
37 const base::android::JavaParamRef<jstring>& jurl) const; | 37 const base::android::JavaParamRef<jstring>& jurl) const; |
38 | 38 |
39 void ResetScoreForURL(JNIEnv* env, | 39 void ResetBaseScoreForURL(JNIEnv* env, |
40 const base::android::JavaParamRef<jobject>& caller, | 40 const base::android::JavaParamRef<jobject>& caller, |
41 const base::android::JavaParamRef<jstring>& jurl, | 41 const base::android::JavaParamRef<jstring>& jurl, |
42 double score); | 42 double score); |
43 | 43 |
44 private: | 44 private: |
45 base::android::ScopedJavaGlobalRef<jobject> java_service_; | 45 base::android::ScopedJavaGlobalRef<jobject> java_service_; |
46 SiteEngagementService* service_; | 46 SiteEngagementService* service_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(SiteEngagementServiceAndroid); | 48 DISALLOW_COPY_AND_ASSIGN(SiteEngagementServiceAndroid); |
49 }; | 49 }; |
50 | 50 |
51 #endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_ANDROID_H_ | 51 #endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_SERVICE_ANDROID_H_ |
OLD | NEW |