| Index: chrome/browser/android/omnibox/autocomplete_controller_android.h
|
| diff --git a/chrome/browser/android/omnibox/autocomplete_controller_android.h b/chrome/browser/android/omnibox/autocomplete_controller_android.h
|
| index d961068e7b302c550b47c06a54b3d3c814ff2912..582a3503e98e8ead8fa136250174f4c90db81214 100644
|
| --- a/chrome/browser/android/omnibox/autocomplete_controller_android.h
|
| +++ b/chrome/browser/android/omnibox/autocomplete_controller_android.h
|
| @@ -67,6 +67,11 @@ class AutocompleteControllerAndroid : public AutocompleteControllerDelegate,
|
| jint selected_index,
|
| jlong elapsed_time_since_input_change);
|
|
|
| + base::android::ScopedJavaLocalRef<jobject> GetTopSynchronousMatch(
|
| + JNIEnv* env,
|
| + jobject obj,
|
| + jstring query);
|
| +
|
| // KeyedService:
|
| virtual void Shutdown() OVERRIDE;
|
|
|
| @@ -119,13 +124,23 @@ class AutocompleteControllerAndroid : public AutocompleteControllerDelegate,
|
| // e.g. http://xn--6q8b.kr/ --> 한.kr
|
| base::string16 FormatURLUsingAcceptLanguages(GURL url);
|
|
|
| + // A helper method for fetching the top synchronous autocomplete result.
|
| + // The |prevent_inline_autocomplete| flag is passed to the AutocompleteInput
|
| + // object, see documentation there for its description.
|
| + base::android::ScopedJavaLocalRef<jobject> GetTopSynchronousResult(
|
| + JNIEnv* env,
|
| + jobject obj,
|
| + jstring j_text,
|
| + bool prevent_inline_autocomplete);
|
| +
|
| scoped_ptr<AutocompleteController> autocomplete_controller_;
|
|
|
| // Last input we sent to the autocomplete controller.
|
| AutocompleteInput input_;
|
|
|
| - // Whether we're currently inside a call to Classify().
|
| - bool inside_classify_;
|
| + // Whether we're currently inside a call to Start() that's called
|
| + // from GetTopSynchronousResult().
|
| + bool inside_synchronous_start_;
|
|
|
| JavaObjectWeakGlobalRef weak_java_autocomplete_controller_android_;
|
| Profile* profile_;
|
|
|