summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/common/common.scons2
-rw-r--r--chrome/common/common.vcproj8
-rw-r--r--chrome/common/temp_scaffolding_stubs.h2
-rw-r--r--chrome/common/url_constants.cc15
-rw-r--r--chrome/common/url_constants.h21
5 files changed, 47 insertions, 1 deletions
diff --git a/chrome/common/common.scons b/chrome/common/common.scons
index 70775cc..85ae914 100644
--- a/chrome/common/common.scons
+++ b/chrome/common/common.scons
@@ -211,6 +211,8 @@ input_files = ChromeFileList([
'time_format.h',
'unzip.cc',
'unzip.h',
+ 'url_constants.cc',
+ 'url_constants.h',
'visitedlink_common.cc',
'visitedlink_common.h',
'win_safe_util.cc',
diff --git a/chrome/common/common.vcproj b/chrome/common/common.vcproj
index 100f0b7..181df44 100644
--- a/chrome/common/common.vcproj
+++ b/chrome/common/common.vcproj
@@ -774,6 +774,14 @@
>
</File>
<File
+ RelativePath=".\url_constants.cc"
+ >
+ </File>
+ <File
+ RelativePath=".\url_constants.h"
+ >
+ </File>
+ <File
RelativePath=".\visitedlink_common.cc"
>
</File>
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h
index 90e1c55..4eb8901 100644
--- a/chrome/common/temp_scaffolding_stubs.h
+++ b/chrome/common/temp_scaffolding_stubs.h
@@ -634,7 +634,7 @@ class PrintViewManager {
PrintViewManager(WebContents&) { }
void Stop() { NOTIMPLEMENTED(); }
void Destroy() { NOTIMPLEMENTED(); }
- bool OnRendererGone(RenderViewHost*) {
+ bool OnRenderViewGone(RenderViewHost*) {
NOTIMPLEMENTED();
return true; // Assume for now that all renderer crashes are important.
}
diff --git a/chrome/common/url_constants.cc b/chrome/common/url_constants.cc
new file mode 100644
index 0000000..cb96bf7
--- /dev/null
+++ b/chrome/common/url_constants.cc
@@ -0,0 +1,15 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/common/url_constants.h"
+
+namespace chrome {
+
+const char kAboutScheme[] = "about";
+const char kChromeUIScheme[] = "chrome-ui";
+const char kDataScheme[] = "data";
+const char kJavaScriptScheme[] = "javascript";
+const char kViewSourceScheme[] = "view-source";
+
+} // namespace chrome
diff --git a/chrome/common/url_constants.h b/chrome/common/url_constants.h
new file mode 100644
index 0000000..d738d22
--- /dev/null
+++ b/chrome/common/url_constants.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Contains constants for known URLs and portions thereof.
+
+#ifndef CHROME_COMMON_URL_CONSTANTS_H_
+#define CHROME_COMMON_URL_CONSTANTS_H_
+
+namespace chrome {
+
+// Canonical schemes you can use as input to GURL.SchemeIs().
+extern const char kAboutScheme[];
+extern const char kChromeUIScheme[];
+extern const char kDataScheme[];
+extern const char kJavaScriptScheme[];
+extern const char kViewSourceScheme[];
+
+} // namespace chrome
+
+#endif // CHROME_COMMON_URL_CONSTANTS_H_