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

Unified Diff: ios/web/public/url_data_source_ios.h

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: ios/web/public/url_data_source_ios.h
diff --git a/ios/web/public/url_data_source_ios.h b/ios/web/public/url_data_source_ios.h
index 503cac11c3351159f9ea6438618fdc2a112fdf24..600ce721434e9fb392ff3152ec7007cc0d5328a6 100644
--- a/ios/web/public/url_data_source_ios.h
+++ b/ios/web/public/url_data_source_ios.h
@@ -10,14 +10,12 @@
#include "base/callback.h"
#include "base/memory/ref_counted.h"
+class GURL;
+
namespace base {
class RefCountedMemory;
}
-namespace net {
-class URLRequest;
-}
-
namespace web {
class BrowserState;
@@ -84,13 +82,7 @@ class URLDataSourceIOS {
// access control. Typically used in concert with
// WebClient::GetAdditionalWebUISchemes() to permit additional WebUI scheme
// support for an embedder.
- virtual bool ShouldServiceRequest(const net::URLRequest* request) const;
-
- // Called to inform the source that StartDataRequest() will be called soon.
- // Gives the source an opportunity to rewrite |path| to incorporate extra
- // information from the URLRequest prior to serving.
- virtual void WillServiceRequest(const net::URLRequest* request,
- std::string* path) const {}
+ virtual bool ShouldServiceRequest(const GURL& url) const;
};
} // namespace web

Powered by Google App Engine
This is Rietveld 408576698