summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/url_constants.cc11
-rw-r--r--chrome/common/url_constants.h3
2 files changed, 14 insertions, 0 deletions
diff --git a/chrome/common/url_constants.cc b/chrome/common/url_constants.cc
index 9da39eb..2c7ec0e 100644
--- a/chrome/common/url_constants.cc
+++ b/chrome/common/url_constants.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdlib.h>
+
#include "chrome/common/url_constants.h"
namespace chrome {
@@ -24,6 +26,15 @@ const char kViewSourceScheme[] = "view-source";
const char kStandardSchemeSeparator[] = "://";
+const char* kSavableSchemes[] = {
+ kHttpScheme,
+ kHttpsScheme,
+ kFileScheme,
+ kFtpScheme,
+ kExtensionScheme,
+ NULL
+};
+
const char kAboutBlankURL[] = "about:blank";
const char kAboutCacheURL[] = "about:cache";
const char kAboutNetInternalsURL[] = "about:net-internals";
diff --git a/chrome/common/url_constants.h b/chrome/common/url_constants.h
index 0cbde15..f59d279 100644
--- a/chrome/common/url_constants.h
+++ b/chrome/common/url_constants.h
@@ -29,6 +29,9 @@ extern const char kViewSourceScheme[];
// Used to separate a standard scheme and the hostname: "://".
extern const char kStandardSchemeSeparator[];
+// Null terminated list of schemes that are savable.
+extern const char* kSavableSchemes[];
+
// About URLs (including schmes).
extern const char kAboutBlankURL[];
extern const char kAboutBrowserCrash[];