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

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: Added a Finch flag required to enable this feature. 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..ac6d85f104527055ac3fe23b652e8553614911c2 100644
--- a/chrome/browser/android/contextualsearch/contextual_search_manager.h
+++ b/chrome/browser/android/contextualsearch/contextual_search_manager.h
@@ -46,6 +46,13 @@ class ContextualSearchManager {
jobject j_base_content_view_core,
jboolean j_may_send_base_page_url);
+ // Enables the Contextual Search Service for the given CVC, which
+ // will allow the renderer to inject our JS v8 extension.
+ void EnableContextualSearchServiceForView(
+ JNIEnv* env,
+ jobject obj,
+ jobject j_overlay_content_view_core);
+
private:
// TODO(donnd): encapsulate these response parameters?
void OnSearchTermResolutionResponse(bool is_invalid,

Powered by Google App Engine
This is Rietveld 408576698