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

Unified Diff: content/public/browser/url_data_source.h

Issue 13375003: Fixing iframe jank in the local omnibox popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebuilding on 14039004. Created 7 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.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

Powered by Google App Engine
This is Rietveld 408576698