Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: chrome/browser/search_engines/template_url_service_android.h

Issue 2349473002: Implement native functions to query custom search engines for Android (Closed)
Patch Set: merge native functions to return generic template url and let Java side to decide which list it sho… Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 17 matching lines...) Expand all
28 JNIEnv* env, 28 JNIEnv* env,
29 const base::android::JavaParamRef<jobject>& obj, 29 const base::android::JavaParamRef<jobject>& obj,
30 jint selected_index); 30 jint selected_index);
31 jint GetDefaultSearchProvider( 31 jint GetDefaultSearchProvider(
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> GetTemplateUrlAt(
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 jboolean IsSearchProviderManaged( 42 jboolean IsSearchProviderManaged(
43 JNIEnv* env, 43 JNIEnv* env,
44 const base::android::JavaParamRef<jobject>& obj); 44 const base::android::JavaParamRef<jobject>& obj);
45 jboolean IsSearchByImageAvailable( 45 jboolean IsSearchByImageAvailable(
46 JNIEnv* env, 46 JNIEnv* env,
47 const base::android::JavaParamRef<jobject>& obj); 47 const base::android::JavaParamRef<jobject>& obj);
48 jboolean IsDefaultSearchEngineGoogle( 48 jboolean IsDefaultSearchEngineGoogle(
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Pointer to the TemplateUrlService for the main profile. 90 // Pointer to the TemplateUrlService for the main profile.
91 TemplateURLService* template_url_service_; 91 TemplateURLService* template_url_service_;
92 92
93 std::unique_ptr<TemplateURLService::Subscription> template_url_subscription_; 93 std::unique_ptr<TemplateURLService::Subscription> template_url_subscription_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); 95 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid);
96 }; 96 };
97 97
98 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ 98 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698