summaryrefslogtreecommitdiffstats
path: root/chrome/common/url_constants.cc
blob: 0b1469b284fb8bccf53a18616bc8b6206c90cff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// 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"

// TODO(port): Remove this header when last ifdef is removed from this file.
#include "build/build_config.h"

namespace chrome {

const char kAboutScheme[] = "about";
const char kChromeInternalScheme[] = "chrome-internal";
const char kChromeUIScheme[] = "chrome-ui";
const char kDataScheme[] = "data";
const char kExtensionScheme[] = "chrome-extension";
const char kFileScheme[] = "file";
const char kFtpScheme[] = "ftp";
const char kHttpScheme[] = "http";
const char kHttpsScheme[] = "https";
const char kJavaScriptScheme[] = "javascript";
const char kMailToScheme[] = "mailto";
const char kUserScriptScheme[] = "chrome-user-script";
const char kViewCacheScheme[] = "view-cache";
const char kViewSourceScheme[] = "view-source";

const char kStandardSchemeSeparator[] = "://";

const char kAboutBlankURL[] = "about:blank";
const char kAboutCacheURL[] = "about:cache";
const char kAboutMemoryURL[] = "about:memory";

const char kChromeUIDevToolsURL[] = "chrome-ui://devtools/";
const char kChromeUIDownloadsURL[] = "chrome-ui://downloads/";
const char kChromeUIExtensionsURL[] = "chrome-ui://extensions/";
const char kChromeUIHistoryURL[] = "chrome-ui://history/";
const char kChromeUIInspectorURL[] = "chrome-ui://inspector/";
const char kChromeUIIPCURL[] = "chrome-ui://about/ipc";
const char kChromeUINetworkURL[] = "chrome-ui://about/network";
#if defined(OS_LINUX)
// TODO(port): Remove ifdef when we think that Linux splash page is not needed.
const char kChromeUINewTabURL[] = "about:linux-splash";
#else
const char kChromeUINewTabURL[] = "chrome-ui://newtab";
#endif

const char kChromeUIDevToolsHost[] = "devtools";
const char kChromeUIDownloadsHost[] = "downloads";
const char kChromeUIExtensionsHost[] = "extensions";
const char kChromeUIFavIconPath[] = "favicon";
const char kChromeUIHistoryHost[] = "history";
const char kChromeUIInspectorHost[] = "inspector";
const char kChromeUINewTabHost[] = "newtab";
const char kChromeUIThumbnailPath[] = "thumb";

}  // namespace chrome