Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ |
| 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 JNIEnv* env, | 32 JNIEnv* env, |
| 33 const base::android::JavaParamRef<jobject>& obj); | 33 const base::android::JavaParamRef<jobject>& obj); |
| 34 jint GetTemplateUrlCount(JNIEnv* env, | 34 jint GetTemplateUrlCount(JNIEnv* env, |
| 35 const base::android::JavaParamRef<jobject>& obj); | 35 const base::android::JavaParamRef<jobject>& obj); |
| 36 jboolean IsLoaded(JNIEnv* env, | 36 jboolean IsLoaded(JNIEnv* env, |
| 37 const base::android::JavaParamRef<jobject>& obj); | 37 const base::android::JavaParamRef<jobject>& obj); |
| 38 base::android::ScopedJavaLocalRef<jobject> GetPrepopulatedTemplateUrlAt( | 38 base::android::ScopedJavaLocalRef<jobject> GetPrepopulatedTemplateUrlAt( |
| 39 JNIEnv* env, | 39 JNIEnv* env, |
| 40 const base::android::JavaParamRef<jobject>& obj, | 40 const base::android::JavaParamRef<jobject>& obj, |
| 41 jint index); | 41 jint index); |
| 42 base::android::ScopedJavaLocalRef<jobject> GetRecentTemplateUrlAt( | |
|
Ian Wen
2016/09/15 22:26:03
I would remove this function. Reason stated below.
ltian
2016/09/16 00:23:18
Done.
| |
| 43 JNIEnv* env, | |
| 44 const base::android::JavaParamRef<jobject>& obj, | |
| 45 jint index); | |
| 42 jboolean IsSearchProviderManaged( | 46 jboolean IsSearchProviderManaged( |
| 43 JNIEnv* env, | 47 JNIEnv* env, |
| 44 const base::android::JavaParamRef<jobject>& obj); | 48 const base::android::JavaParamRef<jobject>& obj); |
| 45 jboolean IsSearchByImageAvailable( | 49 jboolean IsSearchByImageAvailable( |
| 46 JNIEnv* env, | 50 JNIEnv* env, |
| 47 const base::android::JavaParamRef<jobject>& obj); | 51 const base::android::JavaParamRef<jobject>& obj); |
| 48 jboolean IsDefaultSearchEngineGoogle( | 52 jboolean IsDefaultSearchEngineGoogle( |
| 49 JNIEnv* env, | 53 JNIEnv* env, |
| 50 const base::android::JavaParamRef<jobject>& obj); | 54 const base::android::JavaParamRef<jobject>& obj); |
| 51 base::android::ScopedJavaLocalRef<jstring> GetUrlForSearchQuery( | 55 base::android::ScopedJavaLocalRef<jstring> GetUrlForSearchQuery( |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 | 93 |
| 90 // Pointer to the TemplateUrlService for the main profile. | 94 // Pointer to the TemplateUrlService for the main profile. |
| 91 TemplateURLService* template_url_service_; | 95 TemplateURLService* template_url_service_; |
| 92 | 96 |
| 93 std::unique_ptr<TemplateURLService::Subscription> template_url_subscription_; | 97 std::unique_ptr<TemplateURLService::Subscription> template_url_subscription_; |
| 94 | 98 |
| 95 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); | 99 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); |
| 96 }; | 100 }; |
| 97 | 101 |
| 98 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ | 102 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ |
| OLD | NEW |