Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: content/public/common/url_constants.cc

Issue 12087129: Move kChromeSearchScheme out of content since it's a chrome feature. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/url_constants.h" 5 #include "content/public/common/url_constants.h"
6 6
7 #include "content/common/savable_url_schemes.h" 7 #include "content/common/savable_url_schemes.h"
8 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 9
10 namespace chrome { 10 namespace chrome {
11 11
12 const char kAboutScheme[] = "about"; 12 const char kAboutScheme[] = "about";
13 const char kBlobScheme[] = "blob"; 13 const char kBlobScheme[] = "blob";
14 14
15 // Before adding new chrome schemes please check with security@chromium.org. 15 // Before adding new chrome schemes please check with security@chromium.org.
16 // There are security implications associated with introducing new schemes. 16 // There are security implications associated with introducing new schemes.
17 const char kChromeDevToolsScheme[] = "chrome-devtools"; 17 const char kChromeDevToolsScheme[] = "chrome-devtools";
18 const char kChromeInternalScheme[] = "chrome-internal"; 18 const char kChromeInternalScheme[] = "chrome-internal";
19 const char kChromeSearchScheme[] = "chrome-search";
20 const char kChromeUIScheme[] = "chrome"; 19 const char kChromeUIScheme[] = "chrome";
21 const char kDataScheme[] = "data"; 20 const char kDataScheme[] = "data";
22 const char kFileScheme[] = "file"; 21 const char kFileScheme[] = "file";
23 const char kFileSystemScheme[] = "filesystem"; 22 const char kFileSystemScheme[] = "filesystem";
24 const char kFtpScheme[] = "ftp"; 23 const char kFtpScheme[] = "ftp";
25 const char kGuestScheme[] = "chrome-guest"; 24 const char kGuestScheme[] = "chrome-guest";
26 const char kHttpScheme[] = "http"; 25 const char kHttpScheme[] = "http";
27 const char kHttpsScheme[] = "https"; 26 const char kHttpsScheme[] = "https";
28 const char kJavaScriptScheme[] = "javascript"; 27 const char kJavaScriptScheme[] = "javascript";
29 const char kMailToScheme[] = "mailto"; 28 const char kMailToScheme[] = "mailto";
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 bool HasWebUIScheme(const GURL& url) { 79 bool HasWebUIScheme(const GURL& url) {
81 return 80 return
82 #if !defined(OS_IOS) 81 #if !defined(OS_IOS)
83 url.SchemeIs(chrome::kChromeDevToolsScheme) || 82 url.SchemeIs(chrome::kChromeDevToolsScheme) ||
84 url.SchemeIs(chrome::kChromeInternalScheme) || 83 url.SchemeIs(chrome::kChromeInternalScheme) ||
85 #endif 84 #endif
86 url.SchemeIs(chrome::kChromeUIScheme); 85 url.SchemeIs(chrome::kChromeUIScheme);
87 } 86 }
88 87
89 } // namespace content 88 } // namespace content
OLDNEW
« chrome/browser/instant/instant_service.h ('K') | « content/public/common/url_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698