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

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

Issue 8800006: Support chrome-extension:// scheme in URLPattern. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/string_util.h" 7 #include "base/string_util.h"
8 #include "googleurl/src/url_util.h" 8 #include "googleurl/src/url_util.h"
9 9
10 namespace { 10 namespace {
(...skipping 12 matching lines...) Expand all
23 namespace chrome { 23 namespace chrome {
24 24
25 const char kAboutScheme[] = "about"; 25 const char kAboutScheme[] = "about";
26 const char kBlobScheme[] = "blob"; 26 const char kBlobScheme[] = "blob";
27 27
28 // Before adding new chrome schemes please check with security@chromium.org. 28 // Before adding new chrome schemes please check with security@chromium.org.
29 // There are security implications associated with introducing new schemes. 29 // There are security implications associated with introducing new schemes.
30 const char kChromeDevToolsScheme[] = "chrome-devtools"; 30 const char kChromeDevToolsScheme[] = "chrome-devtools";
31 const char kChromeInternalScheme[] = "chrome-internal"; 31 const char kChromeInternalScheme[] = "chrome-internal";
32 const char kChromeUIScheme[] = "chrome"; 32 const char kChromeUIScheme[] = "chrome";
33 const char kChromeExtensionScheme[] = "chrome-extension";
33 const char kDataScheme[] = "data"; 34 const char kDataScheme[] = "data";
34 const char kFileScheme[] = "file"; 35 const char kFileScheme[] = "file";
35 const char kFileSystemScheme[] = "filesystem"; 36 const char kFileSystemScheme[] = "filesystem";
36 const char kFtpScheme[] = "ftp"; 37 const char kFtpScheme[] = "ftp";
37 const char kHttpScheme[] = "http"; 38 const char kHttpScheme[] = "http";
38 const char kHttpsScheme[] = "https"; 39 const char kHttpsScheme[] = "https";
39 const char kJavaScriptScheme[] = "javascript"; 40 const char kJavaScriptScheme[] = "javascript";
40 const char kMailToScheme[] = "mailto"; 41 const char kMailToScheme[] = "mailto";
41 const char kMetadataScheme[] = "metadata"; 42 const char kMetadataScheme[] = "metadata";
42 const char kViewSourceScheme[] = "view-source"; 43 const char kViewSourceScheme[] = "view-source";
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 arraysize(kDefaultSavableSchemes) * sizeof(char*)); 79 arraysize(kDefaultSavableSchemes) * sizeof(char*));
79 for (int i = 0; i < schemes; ++i) { 80 for (int i = 0; i < schemes; ++i) {
80 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] = 81 g_savable_schemes[arraysize(kDefaultSavableSchemes) + i - 1] =
81 base::strdup(additional_savable_schemes[i]); 82 base::strdup(additional_savable_schemes[i]);
82 } 83 }
83 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0; 84 g_savable_schemes[arraysize(kDefaultSavableSchemes) + schemes - 1] = 0;
84 } 85 }
85 } 86 }
86 87
87 } // namespace chrome 88 } // namespace chrome
OLDNEW
« content/public/common/url_constants.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