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

Unified Diff: components/dom_distiller/content/browser/dom_distiller_viewer_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: components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
diff --git a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
index e4f1db53bdc91f365bbc493179e325ec010112a0..212145b3c6681caf012122490adbea0d80a65411 100644
--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
@@ -290,14 +290,10 @@ std::string DomDistillerViewerSource::GetMimeType(
}
bool DomDistillerViewerSource::ShouldServiceRequest(
- const net::URLRequest* request) const {
- return request->url().SchemeIs(scheme_);
-}
-
-// TODO(nyquist): Start tracking requests using this method.
-void DomDistillerViewerSource::WillServiceRequest(
- const net::URLRequest* request,
- std::string* path) const {
+ const GURL& url,
+ content::ResourceContext* resource_context,
+ int render_process_id) const {
+ return url.SchemeIs(scheme_);
}
std::string DomDistillerViewerSource::GetContentSecurityPolicyStyleSrc()

Powered by Google App Engine
This is Rietveld 408576698