Index: url/url_util.cc |
diff --git a/url/url_util.cc b/url/url_util.cc |
index 7a0a1f833f961a4aa616dc731a5763457866882a..b2e87325c55253d7c628951208bfbc8b6a1fa406 100644 |
--- a/url/url_util.cc |
+++ b/url/url_util.cc |
@@ -19,10 +19,12 @@ namespace url { |
namespace { |
-const int kNumStandardURLSchemes = 8; |
+const int kNumStandardURLSchemes = 10; |
const SchemeWithType kStandardURLSchemes[kNumStandardURLSchemes] = { |
{kHttpScheme, SCHEME_WITH_PORT}, |
+ {kHttpSuboriginScheme, SCHEME_WITH_PORT}, |
{kHttpsScheme, SCHEME_WITH_PORT}, |
+ {kHttpsSuboriginScheme, SCHEME_WITH_PORT}, |
// Yes, file URLs can have a hostname, so file URLs should be handled as |
// "standard". File URLs never have a port as specified by the SchemeType |
// field. |
@@ -34,10 +36,12 @@ const SchemeWithType kStandardURLSchemes[kNumStandardURLSchemes] = { |
{kFileSystemScheme, SCHEME_WITHOUT_AUTHORITY}, |
}; |
-const int kNumReferrerURLSchemes = 2; |
+const int kNumReferrerURLSchemes = 4; |
const SchemeWithType kReferrerURLSchemes[kNumReferrerURLSchemes] = { |
{kHttpScheme, SCHEME_WITH_PORT}, |
+ {kHttpSuboriginScheme, SCHEME_WITH_PORT}, |
{kHttpsScheme, SCHEME_WITH_PORT}, |
+ {kHttpsSuboriginScheme, SCHEME_WITH_PORT}, |
}; |
// Lists of the currently installed standard and referrer schemes. These lists |