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

Unified Diff: content/common/url_constants.h

Issue 8159006: Move kExtensionScheme from content to chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 2 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/browser/download/save_package.cc ('k') | content/common/url_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/url_constants.h
diff --git a/content/common/url_constants.h b/content/common/url_constants.h
index 801f1abd9e5c5d6e285344a09205a02cf7c6e7f8..f00460a20028171b202e254550d8a86bd952e4ac 100644
--- a/content/common/url_constants.h
+++ b/content/common/url_constants.h
@@ -12,8 +12,9 @@
namespace chrome {
-// Null terminated list of schemes that are savable.
-extern const char* kSavableSchemes[];
+// Null terminated list of schemes that are savable. This function can be
+// invoked on any thread.
+const char** GetSavableSchemes();
// Canonical schemes you can use as input to GURL.SchemeIs().
// TODO(jam): some of these don't below in the content layer, but are accessed
@@ -25,7 +26,6 @@ CONTENT_EXPORT extern const char kChromeInternalScheme[];
CONTENT_EXPORT extern const char kChromeUIScheme[]; // Used for WebUIs.
CONTENT_EXPORT extern const char kCrosScheme[]; // Used for ChromeOS.
CONTENT_EXPORT extern const char kDataScheme[];
-CONTENT_EXPORT extern const char kExtensionScheme[];
CONTENT_EXPORT extern const char kFileScheme[];
CONTENT_EXPORT extern const char kFileSystemScheme[];
CONTENT_EXPORT extern const char kFtpScheme[];
@@ -46,6 +46,13 @@ CONTENT_EXPORT extern const char kAboutCrashURL[];
// Special URL used to start a navigation to an error page.
extern const char kUnreachableWebDataURL[];
+// 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.
+void CONTENT_EXPORT RegisterContentSchemes(
+ const char** additional_savable_schemes);
+
} // namespace chrome
#endif // CONTENT_COMMON_URL_CONSTANTS_H_
« no previous file with comments | « content/browser/download/save_package.cc ('k') | content/common/url_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698