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

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

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: ready to review Created 9 years, 9 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) 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 <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 kChromeDevToolsScheme[] = "chrome-devtools"; 14 const char kChromeDevToolsScheme[] = "chrome-devtools";
15 const char kChromeInternalScheme[] = "chrome-internal"; 15 const char kChromeInternalScheme[] = "chrome-internal";
16 const char kChromeUIScheme[] = "chrome"; 16 const char kChromeUIScheme[] = "chrome";
17 const char kDataScheme[] = "data"; 17 const char kDataScheme[] = "data";
18 const char kExtensionScheme[] = "chrome-extension"; 18 const char kExtensionScheme[] = "chrome-extension";
19 const char kFileScheme[] = "file"; 19 const char kFileScheme[] = "file";
20 const char kFileSystemScheme[] = "filesystem"; 20 const char kFileSystemScheme[] = "filesystem";
21 const char kFtpScheme[] = "ftp"; 21 const char kFtpScheme[] = "ftp";
22 const char kGearsScheme[] = "gears";
23 const char kHttpScheme[] = "http"; 22 const char kHttpScheme[] = "http";
24 const char kHttpsScheme[] = "https"; 23 const char kHttpsScheme[] = "https";
25 const char kJavaScriptScheme[] = "javascript"; 24 const char kJavaScriptScheme[] = "javascript";
26 const char kMailToScheme[] = "mailto"; 25 const char kMailToScheme[] = "mailto";
27 const char kMetadataScheme[] = "metadata"; 26 const char kMetadataScheme[] = "metadata";
28 const char kUserScriptScheme[] = "chrome-user-script"; 27 const char kUserScriptScheme[] = "chrome-user-script";
29 const char kViewSourceScheme[] = "view-source"; 28 const char kViewSourceScheme[] = "view-source";
30 29
31 #if defined(OS_CHROMEOS) 30 #if defined(OS_CHROMEOS)
32 const char kCrosScheme[] = "cros"; 31 const char kCrosScheme[] = "cros";
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 "http://www.google.com/support/chrome/bin/answer.py?answer=96817"; 237 "http://www.google.com/support/chrome/bin/answer.py?answer=96817";
239 238
240 const char kOutdatedPluginLearnMoreURL[] = 239 const char kOutdatedPluginLearnMoreURL[] =
241 "http://www.google.com/support/chrome/bin/answer.py?answer=1181003"; 240 "http://www.google.com/support/chrome/bin/answer.py?answer=1181003";
242 241
243 void RegisterChromeSchemes() { 242 void RegisterChromeSchemes() {
244 // Don't need "chrome-internal" which was used in old versions of Chrome for 243 // Don't need "chrome-internal" which was used in old versions of Chrome for
245 // the new tab page. 244 // the new tab page.
246 url_util::AddStandardScheme(kChromeDevToolsScheme); 245 url_util::AddStandardScheme(kChromeDevToolsScheme);
247 url_util::AddStandardScheme(kChromeUIScheme); 246 url_util::AddStandardScheme(kChromeUIScheme);
248 url_util::AddStandardScheme(kGearsScheme);
249 url_util::AddStandardScheme(kExtensionScheme); 247 url_util::AddStandardScheme(kExtensionScheme);
250 url_util::AddStandardScheme(kMetadataScheme); 248 url_util::AddStandardScheme(kMetadataScheme);
251 #if defined(OS_CHROMEOS) 249 #if defined(OS_CHROMEOS)
252 url_util::AddStandardScheme(kCrosScheme); 250 url_util::AddStandardScheme(kCrosScheme);
253 #endif 251 #endif
254 252
255 // Prevent future modification of the standard schemes list. This is to 253 // Prevent future modification of the standard schemes list. This is to
256 // prevent accidental creation of data races in the program. AddStandardScheme 254 // prevent accidental creation of data races in the program. AddStandardScheme
257 // isn't threadsafe so must be called when GURL isn't used on any other 255 // isn't threadsafe so must be called when GURL isn't used on any other
258 // thread. This is really easy to mess up, so we say that all calls to 256 // thread. This is really easy to mess up, so we say that all calls to
259 // AddStandardScheme in Chrome must be inside this function. 257 // AddStandardScheme in Chrome must be inside this function.
260 url_util::LockStandardSchemes(); 258 url_util::LockStandardSchemes();
261 } 259 }
262 260
263 } // namespace chrome 261 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698