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

Side by Side Diff: chrome/common/url_constants.cc

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: use system srp and mpi libs, not local copies Created 9 years, 8 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 1
2 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include <stdlib.h> 6 #include <stdlib.h>
7 7
8 #include "chrome/common/url_constants.h" 8 #include "chrome/common/url_constants.h"
9 #include "googleurl/src/url_util.h" 9 #include "googleurl/src/url_util.h"
10 10
11 namespace chrome { 11 namespace chrome {
12 12
13 const char kAboutScheme[] = "about"; 13 const char kAboutScheme[] = "about";
14 const char kBlobScheme[] = "blob"; 14 const char kBlobScheme[] = "blob";
15 const char kChromeDevToolsScheme[] = "chrome-devtools"; 15 const char kChromeDevToolsScheme[] = "chrome-devtools";
16 const char kChromeInternalScheme[] = "chrome-internal"; 16 const char kChromeInternalScheme[] = "chrome-internal";
17 const char kChromeUIScheme[] = "chrome"; 17 const char kChromeUIScheme[] = "chrome";
18 const char kDataScheme[] = "data"; 18 const char kDataScheme[] = "data";
19 const char kExtensionScheme[] = "chrome-extension"; 19 const char kExtensionScheme[] = "chrome-extension";
20 const char kFileScheme[] = "file"; 20 const char kFileScheme[] = "file";
21 const char kFtpScheme[] = "ftp"; 21 const char kFtpScheme[] = "ftp";
22 const char kGearsScheme[] = "gears"; 22 const char kGearsScheme[] = "gears";
23 const char kHttpScheme[] = "http"; 23 const char kHttpScheme[] = "http";
24 const char kHttpsScheme[] = "https"; 24 const char kHttpsScheme[] = "https";
25 const char kHttpsvScheme[] = "httpsv";
25 const char kJavaScriptScheme[] = "javascript"; 26 const char kJavaScriptScheme[] = "javascript";
26 const char kMailToScheme[] = "mailto"; 27 const char kMailToScheme[] = "mailto";
27 const char kMetadataScheme[] = "metadata"; 28 const char kMetadataScheme[] = "metadata";
28 const char kUserScriptScheme[] = "chrome-user-script"; 29 const char kUserScriptScheme[] = "chrome-user-script";
29 const char kViewSourceScheme[] = "view-source"; 30 const char kViewSourceScheme[] = "view-source";
30 31
31 #if defined(OS_CHROMEOS) 32 #if defined(OS_CHROMEOS)
32 const char kCrosScheme[] = "cros"; 33 const char kCrosScheme[] = "cros";
33 #endif 34 #endif
34 35
35 const char kStandardSchemeSeparator[] = "://"; 36 const char kStandardSchemeSeparator[] = "://";
36 37
37 const char* kSavableSchemes[] = { 38 const char* kSavableSchemes[] = {
38 kHttpScheme, 39 kHttpScheme,
39 kHttpsScheme, 40 kHttpsScheme,
41 kHttpsvScheme,
40 kFileScheme, 42 kFileScheme,
41 kFtpScheme, 43 kFtpScheme,
42 kExtensionScheme, 44 kExtensionScheme,
43 kChromeDevToolsScheme, 45 kChromeDevToolsScheme,
44 kChromeUIScheme, 46 kChromeUIScheme,
45 NULL 47 NULL
46 }; 48 };
47 49
48 const char kAboutAboutURL[] = "about:about"; 50 const char kAboutAboutURL[] = "about:about";
49 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals"; 51 const char kAboutAppCacheInternalsURL[] = "about:appcache-internals";
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 250
249 // Prevent future modification of the standard schemes list. This is to 251 // Prevent future modification of the standard schemes list. This is to
250 // prevent accidental creation of data races in the program. AddStandardScheme 252 // prevent accidental creation of data races in the program. AddStandardScheme
251 // isn't threadsafe so must be called when GURL isn't used on any other 253 // isn't threadsafe so must be called when GURL isn't used on any other
252 // thread. This is really easy to mess up, so we say that all calls to 254 // thread. This is really easy to mess up, so we say that all calls to
253 // AddStandardScheme in Chrome must be inside this function. 255 // AddStandardScheme in Chrome must be inside this function.
254 url_util::LockStandardSchemes(); 256 url_util::LockStandardSchemes();
255 } 257 }
256 258
257 } // namespace chrome 259 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698