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

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

Issue 3324009: Work in progress implementation of Icon URI scheme. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "chrome/common/url_constants.h" 7 #include "chrome/common/url_constants.h"
8 #include "googleurl/src/url_util.h" 8 #include "googleurl/src/url_util.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 const char kChromeInternalScheme[] = "chrome-internal"; 14 const char kChromeInternalScheme[] = "chrome-internal";
15 const char kChromeUIScheme[] = "chrome"; 15 const char kChromeUIScheme[] = "chrome";
16 const char kDataScheme[] = "data"; 16 const char kDataScheme[] = "data";
17 const char kExtensionScheme[] = "chrome-extension"; 17 const char kExtensionScheme[] = "chrome-extension";
18 const char kFileScheme[] = "file"; 18 const char kFileScheme[] = "file";
19 const char kFtpScheme[] = "ftp"; 19 const char kFtpScheme[] = "ftp";
20 const char kGearsScheme[] = "gears"; 20 const char kGearsScheme[] = "gears";
21 const char kHttpScheme[] = "http"; 21 const char kHttpScheme[] = "http";
22 const char kHttpsScheme[] = "https"; 22 const char kHttpsScheme[] = "https";
23 const char kJavaScriptScheme[] = "javascript"; 23 const char kJavaScriptScheme[] = "javascript";
24 const char kMailToScheme[] = "mailto"; 24 const char kMailToScheme[] = "mailto";
25 const char kMetadataScheme[] = "metadata"; 25 const char kMetadataScheme[] = "metadata";
26 const char kUserScriptScheme[] = "chrome-user-script"; 26 const char kUserScriptScheme[] = "chrome-user-script";
27 const char kViewSourceScheme[] = "view-source"; 27 const char kViewSourceScheme[] = "view-source";
28 const char kIconURLScheme[] = "icon";
28 29
29 #if defined(OS_CHROMEOS) 30 #if defined(OS_CHROMEOS)
30 const char kCrosScheme[] = "cros"; 31 const char kCrosScheme[] = "cros";
31 #endif 32 #endif
32 33
33 const char kStandardSchemeSeparator[] = "://"; 34 const char kStandardSchemeSeparator[] = "://";
34 35
35 const char* kSavableSchemes[] = { 36 const char* kSavableSchemes[] = {
36 kHttpScheme, 37 kHttpScheme,
37 kHttpsScheme, 38 kHttpsScheme,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 149
149 // Prevent future modification of the standard schemes list. This is to 150 // Prevent future modification of the standard schemes list. This is to
150 // prevent accidental creation of data races in the program. AddStandardScheme 151 // prevent accidental creation of data races in the program. AddStandardScheme
151 // isn't threadsafe so must be called when GURL isn't used on any other 152 // isn't threadsafe so must be called when GURL isn't used on any other
152 // thread. This is really easy to mess up, so we say that all calls to 153 // thread. This is really easy to mess up, so we say that all calls to
153 // AddStandardScheme in Chrome must be inside this function. 154 // AddStandardScheme in Chrome must be inside this function.
154 url_util::LockStandardSchemes(); 155 url_util::LockStandardSchemes();
155 } 156 }
156 157
157 } // namespace chrome 158 } // namespace chrome
OLDNEW
« chrome/browser/icon_url_data_manager_unittest.cc ('K') | « chrome/common/url_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698