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

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

Issue 9950040: Get chrome:// dev tool urls hooked up in content_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « chrome/common/url_constants.h ('k') | chrome/test/base/chrome_test_suite.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/common/url_constants.h" 5 #include "chrome/common/url_constants.h"
6 6
7 #include "googleurl/src/url_util.h" 7 #include "googleurl/src/url_util.h"
8 8
9 namespace {
10 const char* kSavableSchemes[] = {
11 chrome::kExtensionScheme,
12 NULL
13 };
14 } // namespace
15
16 namespace chrome { 9 namespace chrome {
17 10
18 #if defined(OS_CHROMEOS) 11 #if defined(OS_CHROMEOS)
19 const char kCrosScheme[] = "cros"; 12 const char kCrosScheme[] = "cros";
20 const char kGDataScheme[] = "gdata"; 13 const char kGDataScheme[] = "gdata";
21 #endif 14 #endif
22 15
23 const char kAboutPluginsURL[] = "about:plugins"; 16 const char kAboutPluginsURL[] = "about:plugins";
24 const char kAboutVersionURL[] = "about:version"; 17 const char kAboutVersionURL[] = "about:version";
25 18
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 kChromeUIHangURL, 404 kChromeUIHangURL,
412 kChromeUIShorthangURL, 405 kChromeUIShorthangURL,
413 kChromeUIGpuCleanURL, 406 kChromeUIGpuCleanURL,
414 kChromeUIGpuCrashURL, 407 kChromeUIGpuCrashURL,
415 kChromeUIGpuHangURL, 408 kChromeUIGpuHangURL,
416 }; 409 };
417 int kNumberOfChromeDebugURLs = static_cast<int>(arraysize(kChromeDebugURLs)); 410 int kNumberOfChromeDebugURLs = static_cast<int>(arraysize(kChromeDebugURLs));
418 411
419 const char kExtensionScheme[] = "chrome-extension"; 412 const char kExtensionScheme[] = "chrome-extension";
420 413
421 void RegisterChromeSchemes() {
422 url_util::AddStandardScheme(kExtensionScheme);
423 #if defined(OS_CHROMEOS)
424 url_util::AddStandardScheme(kCrosScheme);
425 url_util::AddStandardScheme(kGDataScheme);
426 #endif
427
428 // This call will also lock the list of standard schemes.
429 content::RegisterContentSchemes(kSavableSchemes);
430 }
431
432 } // namespace chrome 414 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/url_constants.h ('k') | chrome/test/base/chrome_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698