Index: content/public/browser/content_browser_client.h |
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h |
index 4dd626e7914dd439ed863765d9a955c1fc54f611..d08a8a945b05db6a0a085b684509e9c43765149b 100644 |
--- a/content/public/browser/content_browser_client.h |
+++ b/content/public/browser/content_browser_client.h |
@@ -216,11 +216,14 @@ class CONTENT_EXPORT ContentBrowserClient { |
// Returns a list additional WebUI schemes, if any. These additional schemes |
// act as aliases to the chrome: scheme. The additional schemes may or may |
// not serve specific WebUI pages depending on the particular URLDataSource |
- // and its override of URLDataSource::ShouldServiceRequest. For all schemes |
- // returned here, view-source is allowed. |
+ // and its override of URLDataSource::ShouldServiceRequest. |
virtual void GetAdditionalWebUISchemes( |
std::vector<std::string>* additional_schemes) {} |
+ // Returns a list of additional schemes allowed for view-source. |
Charlie Reis
2017/03/16 20:26:05
Don't forget to document what it defaults to, so i
alexmos
2017/03/16 20:31:01
Done.
|
+ virtual void GetAdditionalViewSourceSchemes( |
+ std::vector<std::string>* additional_schemes); |
+ |
// Called when WebUI objects are created to get aggregate usage data (i.e. is |
// chrome://downloads used more than chrome://bookmarks?). Only internal (e.g. |
// chrome://) URLs are logged. Returns whether the URL was actually logged. |