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

Unified Diff: chrome/browser/android/contextualsearch/contextual_search_manager.h

Issue 1385663002: [Contextual Search] Add Mojo-enabled API component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed the CS API controller to not be a notification observer. Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698