diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 18:10:44 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 18:10:44 +0000 |
commit | 660da673c7cdf3ad7bd01878d327e85be3f25af0 (patch) | |
tree | 778e1c368ecf5b7d2de58bb863bea8be53dae8d0 /chrome | |
parent | 421fec3be0202a9e36cf9e18d83b982c5b7d1c9f (diff) | |
download | chromium_src-660da673c7cdf3ad7bd01878d327e85be3f25af0.zip chromium_src-660da673c7cdf3ad7bd01878d327e85be3f25af0.tar.gz chromium_src-660da673c7cdf3ad7bd01878d327e85be3f25af0.tar.bz2 |
Some files I forgot in my previous view-source change.
Review URL: http://codereview.chromium.org/27139
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/common/common.scons | 2 | ||||
-rw-r--r-- | chrome/common/common.vcproj | 8 | ||||
-rw-r--r-- | chrome/common/temp_scaffolding_stubs.h | 2 | ||||
-rw-r--r-- | chrome/common/url_constants.cc | 15 | ||||
-rw-r--r-- | chrome/common/url_constants.h | 21 |
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_
|