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

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

Issue 2740013008: Fix tab restore for view-source Chrome extension pages. (Closed)
Patch Set: Created 3 years, 9 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/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 4dd626e7914dd439ed863765d9a955c1fc54f611..e94f689164a89e66bd3f55f6aae3c61f2db3eafe 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.
+ virtual void GetAdditionalViewSourceSchemes(
+ std::vector<std::string>* additional_schemes) {}
Charlie Reis 2017/03/15 15:03:31 I wonder if there's a risk that this breaks view-s
alexmos 2017/03/16 20:07:30 Good idea. Done.
+
// 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.
« content/browser/browser_url_handler_impl.cc ('K') | « content/browser/browser_url_handler_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698