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

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

Issue 465183002: Add ctxsl_alternate_term to the contextual search request and update the API version to 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 6 years, 4 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 "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 30 matching lines...) Expand all
41 jobject obj, 41 jobject obj,
42 jstring jquery); 42 jstring jquery);
43 base::android::ScopedJavaLocalRef<jstring> ReplaceSearchTermsInUrl( 43 base::android::ScopedJavaLocalRef<jstring> ReplaceSearchTermsInUrl(
44 JNIEnv* env, 44 JNIEnv* env,
45 jobject obj, 45 jobject obj,
46 jstring jquery, 46 jstring jquery,
47 jstring jcurrent_url); 47 jstring jcurrent_url);
48 base::android::ScopedJavaLocalRef<jstring> GetUrlForContextualSearchQuery( 48 base::android::ScopedJavaLocalRef<jstring> GetUrlForContextualSearchQuery(
49 JNIEnv* env, 49 JNIEnv* env,
50 jobject obj, 50 jobject obj,
51 jstring jquery); 51 jstring jquery,
52 jstring jalternate_term);
52 53
53 static bool Register(JNIEnv* env); 54 static bool Register(JNIEnv* env);
54 55
55 private: 56 private:
56 ~TemplateUrlServiceAndroid(); 57 ~TemplateUrlServiceAndroid();
57 58
58 bool IsPrepopulatedTemplate(TemplateURL* url); 59 bool IsPrepopulatedTemplate(TemplateURL* url);
59 60
60 void OnTemplateURLServiceLoaded(); 61 void OnTemplateURLServiceLoaded();
61 62
62 JavaObjectWeakGlobalRef weak_java_obj_; 63 JavaObjectWeakGlobalRef weak_java_obj_;
63 64
64 // Pointer to the TemplateUrlService for the main profile. 65 // Pointer to the TemplateUrlService for the main profile.
65 TemplateURLService* template_url_service_; 66 TemplateURLService* template_url_service_;
66 67
67 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_; 68 scoped_ptr<TemplateURLService::Subscription> template_url_subscription_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid); 70 DISALLOW_COPY_AND_ASSIGN(TemplateUrlServiceAndroid);
70 }; 71 };
71 72
72 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_ 73 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698