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

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: Fixing comment. 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 93d38c0c2ae71c1675c7951a39ad456acb0a950b..b516967066b1582119fa1d4718498f4cacb4fe2c 100644
--- a/content/public/browser/url_data_source.h
+++ b/content/public/browser/url_data_source.h
@@ -106,6 +106,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