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

Unified Diff: content/public/common/url_constants.h

Issue 9950040: Get chrome:// dev tool urls hooked up in content_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « content/public/common/content_client.h ('k') | content/public/common/url_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/url_constants.h
===================================================================
--- content/public/common/url_constants.h (revision 133033)
+++ content/public/common/url_constants.h (working copy)
@@ -66,12 +66,17 @@
// invoked on any thread.
CONTENT_EXPORT const char** GetSavableSchemes();
-// Call near the beginning of startup to register the content layer's internal
-// URLs that should be parsed as "standard" with the googleurl library. The
-// embedder can pass a 0-terminated list of additional schemes that should be
-// savable, or NULL if the standard list is sufficient.
-CONTENT_EXPORT void RegisterContentSchemes(
- const char** additional_savable_schemes);
+// Note: ContentMainRunner calls this method internally as part of main
+// initialziation, so this function generally should not be called by
+// embedders. It's exported to facilitate test harnesses that do not
+// utilize ContentMainRunner and that do not wish to lock the set
+// of standard schemes at init time.
+//
+// Called near the beginning of startup to register URL schemes that should
+// be parsed as "standard" with the googleurl library. Optionally, the set
+// of standard schemes is locked down. The embedder can add additional
+// schemes by overriding the ContentClient::AddAdditionalSchemes method.
+CONTENT_EXPORT void RegisterContentSchemes(bool lock_standard_schemes);
} // namespace content
« no previous file with comments | « content/public/common/content_client.h ('k') | content/public/common/url_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698