| Index: chrome/browser/android/contextualsearch/contextual_search_manager.h
|
| diff --git a/chrome/browser/android/contextualsearch/contextual_search_manager.h b/chrome/browser/android/contextualsearch/contextual_search_manager.h
|
| index 08a2e3df493f79e8c4ef41dc44528474734c8492..29fac0af4f085e86fe72c609548cc3839c2f0444 100644
|
| --- a/chrome/browser/android/contextualsearch/contextual_search_manager.h
|
| +++ b/chrome/browser/android/contextualsearch/contextual_search_manager.h
|
| @@ -46,6 +46,19 @@ class ContextualSearchManager {
|
| jobject j_base_content_view_core,
|
| jboolean j_may_send_base_page_url);
|
|
|
| + // Enables the Contextual Search API for the given CVC, by adding this
|
| + // view to the list of renderers that can inject our API.
|
| + void AddViewForContextualSearchApi(JNIEnv* env,
|
| + jobject obj,
|
| + jobject j_overlay_content_view_core);
|
| +
|
| + // Removes the given ID from the list of renderers that can inject our API.
|
| + // If the API was already enabled it stays enabled, but no new enabling
|
| + // will be done.
|
| + void RemoveViewForContextualSearchApi(JNIEnv* env,
|
| + jobject obj,
|
| + int render_process_host_id);
|
| +
|
| private:
|
| // TODO(donnd): encapsulate these response parameters?
|
| void OnSearchTermResolutionResponse(bool is_invalid,
|
|
|