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

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

Issue 2179563003: Android: Remove ContentViewCore::GetLayer() from public interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 5 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_delegate.h
diff --git a/chrome/browser/android/contextualsearch/contextual_search_delegate.h b/chrome/browser/android/contextualsearch/contextual_search_delegate.h
index d70bd89f0cf62ea1228fb5adb68f0a66784d23b1..588baf3843c8af54bf8afbae8257a5e903e31c2a 100644
--- a/chrome/browser/android/contextualsearch/contextual_search_delegate.h
+++ b/chrome/browser/android/contextualsearch/contextual_search_delegate.h
@@ -19,6 +19,10 @@
#include "content/public/browser/android/content_view_core.h"
#include "net/url_request/url_fetcher_delegate.h"
+namespace content {
+class WebContents;
+}
+
namespace net {
class URLRequestContextGetter;
} // namespace net
@@ -68,13 +72,13 @@ class ContextualSearchDelegate
void StartSearchTermResolutionRequest(
const std::string& selection,
bool use_resolved_search_term,
- content::ContentViewCore* content_view_core,
+ content::WebContents* web_contents,
bool may_send_base_page_url);
// Gathers surrounding text and saves it locally for a future query.
void GatherAndSaveSurroundingText(const std::string& selection,
bool use_resolved_search_term,
- content::ContentViewCore* content_view_core,
+ content::WebContents* web_contents,
bool may_send_base_page_url);
// Continues making a Search Term Resolution request, once the surrounding
@@ -118,7 +122,7 @@ class ContextualSearchDelegate
// the given parameters.
void BuildContext(const std::string& selection,
bool use_resolved_search_term,
- content::ContentViewCore* content_view_core,
+ content::WebContents* web_contents,
bool may_send_base_page_url);
// Builds and returns the search term resolution request URL.
@@ -137,7 +141,7 @@ class ContextualSearchDelegate
void GatherSurroundingTextWithCallback(
const std::string& selection,
bool use_resolved_search_term,
- content::ContentViewCore* content_view_core,
+ content::WebContents* web_contents,
bool may_send_base_page_url,
HandleSurroundingsCallback callback);

Powered by Google App Engine
This is Rietveld 408576698