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

Unified Diff: chrome/browser/search/thumbnail_source.cc

Issue 2856093004: Generalize content::URLDataSource so that it can be used by the network service. (Closed)
Patch Set: review comments Created 3 years, 8 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/search/thumbnail_source.cc
diff --git a/chrome/browser/search/thumbnail_source.cc b/chrome/browser/search/thumbnail_source.cc
index 7ef5939d05421dacf7c46a3930589b05ec4213d3..95bfd6a20304832514dab7b46a89b776bc0adfb6 100644
--- a/chrome/browser/search/thumbnail_source.cc
+++ b/chrome/browser/search/thumbnail_source.cc
@@ -84,10 +84,15 @@ bool ThumbnailSource::AllowCaching() const {
}
bool ThumbnailSource::ShouldServiceRequest(
- const net::URLRequest* request) const {
- if (request->url().SchemeIs(chrome::kChromeSearchScheme))
- return InstantIOContext::ShouldServiceRequest(request);
- return URLDataSource::ShouldServiceRequest(request);
+ const GURL& url,
+ content::ResourceContext* resource_context,
+ int render_process_id) const {
+ if (url.SchemeIs(chrome::kChromeSearchScheme)) {
+ return InstantIOContext::ShouldServiceRequest(url, resource_context,
+ render_process_id);
+ }
+ return URLDataSource::ShouldServiceRequest(url, resource_context,
+ render_process_id);
}
void ThumbnailSource::ExtractPageAndThumbnailUrls(

Powered by Google App Engine
This is Rietveld 408576698