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 "base/android/jni_weak_ref.h" | 8 #include "base/android/jni_weak_ref.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 void Load(JNIEnv* env, jobject obj); | 24 void Load(JNIEnv* env, jobject obj); |
25 void SetUserSelectedDefaultSearchProvider(JNIEnv* env, | 25 void SetUserSelectedDefaultSearchProvider(JNIEnv* env, |
26 jobject obj, | 26 jobject obj, |
27 jint selected_index); | 27 jint selected_index); |
28 jint GetDefaultSearchProvider(JNIEnv* env, jobject obj); | 28 jint GetDefaultSearchProvider(JNIEnv* env, jobject obj); |
29 jint GetTemplateUrlCount(JNIEnv* env, jobject obj); | 29 jint GetTemplateUrlCount(JNIEnv* env, jobject obj); |
30 jboolean IsLoaded(JNIEnv* env, jobject obj); | 30 jboolean IsLoaded(JNIEnv* env, jobject obj); |
31 base::android::ScopedJavaLocalRef<jobject> | 31 base::android::ScopedJavaLocalRef<jobject> |
32 GetPrepopulatedTemplateUrlAt(JNIEnv* env, jobject obj, jint index); | 32 GetPrepopulatedTemplateUrlAt(JNIEnv* env, jobject obj, jint index); |
33 jboolean IsSearchProviderManaged(JNIEnv* env, jobject obj); | 33 jboolean IsSearchProviderManaged(JNIEnv* env, jobject obj); |
34 jboolean IsSearchByImageAvailable(JNIEnv* env, jobject obj); | |
35 jboolean IsDefaultSearchEngineGoogle(JNIEnv* env, jobject obj); | 34 jboolean IsDefaultSearchEngineGoogle(JNIEnv* env, jobject obj); |
36 base::android::ScopedJavaLocalRef<jstring> GetUrlForSearchQuery( | 35 base::android::ScopedJavaLocalRef<jstring> GetUrlForSearchQuery( |
37 JNIEnv* env, | 36 JNIEnv* env, |
38 jobject obj, | 37 jobject obj, |
39 jstring jquery); | 38 jstring jquery); |
40 base::android::ScopedJavaLocalRef<jstring> GetUrlForVoiceSearchQuery( | 39 base::android::ScopedJavaLocalRef<jstring> GetUrlForVoiceSearchQuery( |
41 JNIEnv* env, | 40 JNIEnv* env, |
42 jobject obj, | 41 jobject obj, |
43 jstring jquery); | 42 jstring jquery); |
44 base::android::ScopedJavaLocalRef<jstring> ReplaceSearchTermsInUrl( | 43 base::android::ScopedJavaLocalRef<jstring> ReplaceSearchTermsInUrl( |
(...skipping 28 matching lines...) Expand all Loading... |
73 | 72 |
74 // Pointer to the TemplateUrlService for the main profile. | 73 // Pointer to the TemplateUrlService for the main profile. |
75 TemplateURLService* template_url_service_; | 74 TemplateURLService* template_url_service_; |
76 | 75 |
77 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_; | 76 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_; |
78 | 77 |
79 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); | 78 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); |
80 }; | 79 }; |
81 | 80 |
82 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ | 81 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ |
OLD | NEW |