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

Unified Diff: content/public/browser/url_data_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: content/public/browser/url_data_source.cc
diff --git a/content/public/browser/url_data_source.cc b/content/public/browser/url_data_source.cc
index 7bcbe1d2eb04d80273f628664c7c380d10afab7f..57579e32ab739aa0a4f26715f5273e8078f25162 100644
--- a/content/public/browser/url_data_source.cc
+++ b/content/public/browser/url_data_source.cc
@@ -60,11 +60,10 @@ bool URLDataSource::ShouldDenyXFrameOptions() const {
return true;
}
-bool URLDataSource::ShouldServiceRequest(const net::URLRequest* request) const {
- if (request->url().SchemeIs(kChromeDevToolsScheme) ||
- request->url().SchemeIs(kChromeUIScheme))
- return true;
- return false;
+bool URLDataSource::ShouldServiceRequest(const GURL& url,
+ ResourceContext* resource_context,
+ int render_process_id) const {
+ return url.SchemeIs(kChromeDevToolsScheme) || url.SchemeIs(kChromeUIScheme);
}
bool URLDataSource::ShouldServeMimeTypeAsContentTypeHeader() const {

Powered by Google App Engine
This is Rietveld 408576698