| 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 25 matching lines...) Expand all Loading... |
| 36 jint GetTemplateUrlCount( | 36 jint GetTemplateUrlCount( |
| 37 JNIEnv* env, | 37 JNIEnv* env, |
| 38 const base::android::JavaParamRef<jobject>& obj) const; | 38 const base::android::JavaParamRef<jobject>& obj) const; |
| 39 jboolean IsLoaded( | 39 jboolean IsLoaded( |
| 40 JNIEnv* env, | 40 JNIEnv* env, |
| 41 const base::android::JavaParamRef<jobject>& obj) const; | 41 const base::android::JavaParamRef<jobject>& obj) const; |
| 42 base::android::ScopedJavaLocalRef<jobject> GetTemplateUrlAt( | 42 base::android::ScopedJavaLocalRef<jobject> GetTemplateUrlAt( |
| 43 JNIEnv* env, | 43 JNIEnv* env, |
| 44 const base::android::JavaParamRef<jobject>& obj, | 44 const base::android::JavaParamRef<jobject>& obj, |
| 45 jint index) const; | 45 jint index) const; |
| 46 jboolean IsSearchProviderManaged( | 46 jboolean IsDefaultSearchManaged( |
| 47 JNIEnv* env, | 47 JNIEnv* env, |
| 48 const base::android::JavaParamRef<jobject>& obj); | 48 const base::android::JavaParamRef<jobject>& obj); |
| 49 jboolean IsSearchByImageAvailable( | 49 jboolean IsSearchByImageAvailable( |
| 50 JNIEnv* env, | 50 JNIEnv* env, |
| 51 const base::android::JavaParamRef<jobject>& obj); | 51 const base::android::JavaParamRef<jobject>& obj); |
| 52 jboolean IsDefaultSearchEngineGoogle( | 52 jboolean IsDefaultSearchEngineGoogle( |
| 53 JNIEnv* env, | 53 JNIEnv* env, |
| 54 const base::android::JavaParamRef<jobject>& obj); | 54 const base::android::JavaParamRef<jobject>& obj); |
| 55 jboolean IsSearchResultsPageFromDefaultSearchProvider( | 55 jboolean IsSearchResultsPageFromDefaultSearchProvider( |
| 56 JNIEnv* env, | 56 JNIEnv* env, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 std::unique_ptr<TemplateURLService::Subscription> template_url_subscription_; | 120 std::unique_ptr<TemplateURLService::Subscription> template_url_subscription_; |
| 121 | 121 |
| 122 // Caches the up-to-date TemplateURL list so that calls from Android could | 122 // Caches the up-to-date TemplateURL list so that calls from Android could |
| 123 // directly get data from it. | 123 // directly get data from it. |
| 124 std::vector<TemplateURL*> template_urls_; | 124 std::vector<TemplateURL*> template_urls_; |
| 125 | 125 |
| 126 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); | 126 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ | 129 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ |
| OLD | NEW |