Index: content/public/browser/url_data_source.h |
diff --git a/content/public/browser/url_data_source.h b/content/public/browser/url_data_source.h |
index de3509028f9905ff75be53183500a1a4568bd1ca..d6ff1e06a683dccc835fdd3a314c2bcd48316d85 100644 |
--- a/content/public/browser/url_data_source.h |
+++ b/content/public/browser/url_data_source.h |
@@ -48,7 +48,8 @@ class CONTENT_EXPORT URLDataSource { |
// data is available or if the request could not be satisfied. This can be |
// called either in this callback or asynchronously with the response. |
virtual void StartDataRequest(const std::string& path, |
- bool is_incognito, |
+ int render_process_id, |
+ int render_view_id, |
const GotDataCallback& callback) = 0; |
// Return the mimetype that should be sent with this response, or empty |
@@ -106,6 +107,13 @@ class CONTENT_EXPORT URLDataSource { |
// ContentBrowserClient::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 {} |
}; |
} // namespace content |