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

Side by Side Diff: content/common/url_constants.h

Issue 8159006: Move kExtensionScheme from content to chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 2 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 | « content/browser/download/save_package.cc ('k') | content/common/url_constants.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) 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 // Contains constants for known URLs and portions thereof. 5 // Contains constants for known URLs and portions thereof.
6 6
7 #ifndef CONTENT_COMMON_URL_CONSTANTS_H_ 7 #ifndef CONTENT_COMMON_URL_CONSTANTS_H_
8 #define CONTENT_COMMON_URL_CONSTANTS_H_ 8 #define CONTENT_COMMON_URL_CONSTANTS_H_
9 #pragma once 9 #pragma once
10 10
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 12
13 namespace chrome { 13 namespace chrome {
14 14
15 // Null terminated list of schemes that are savable. 15 // Null terminated list of schemes that are savable. This function can be
16 extern const char* kSavableSchemes[]; 16 // invoked on any thread.
17 const char** GetSavableSchemes();
17 18
18 // Canonical schemes you can use as input to GURL.SchemeIs(). 19 // Canonical schemes you can use as input to GURL.SchemeIs().
19 // TODO(jam): some of these don't below in the content layer, but are accessed 20 // TODO(jam): some of these don't below in the content layer, but are accessed
20 // from there. 21 // from there.
21 CONTENT_EXPORT extern const char kAboutScheme[]; 22 CONTENT_EXPORT extern const char kAboutScheme[];
22 CONTENT_EXPORT extern const char kBlobScheme[]; 23 CONTENT_EXPORT extern const char kBlobScheme[];
23 CONTENT_EXPORT extern const char kChromeDevToolsScheme[]; 24 CONTENT_EXPORT extern const char kChromeDevToolsScheme[];
24 CONTENT_EXPORT extern const char kChromeInternalScheme[]; 25 CONTENT_EXPORT extern const char kChromeInternalScheme[];
25 CONTENT_EXPORT extern const char kChromeUIScheme[]; // Used for WebUIs. 26 CONTENT_EXPORT extern const char kChromeUIScheme[]; // Used for WebUIs.
26 CONTENT_EXPORT extern const char kCrosScheme[]; // Used for ChromeOS. 27 CONTENT_EXPORT extern const char kCrosScheme[]; // Used for ChromeOS.
27 CONTENT_EXPORT extern const char kDataScheme[]; 28 CONTENT_EXPORT extern const char kDataScheme[];
28 CONTENT_EXPORT extern const char kExtensionScheme[];
29 CONTENT_EXPORT extern const char kFileScheme[]; 29 CONTENT_EXPORT extern const char kFileScheme[];
30 CONTENT_EXPORT extern const char kFileSystemScheme[]; 30 CONTENT_EXPORT extern const char kFileSystemScheme[];
31 CONTENT_EXPORT extern const char kFtpScheme[]; 31 CONTENT_EXPORT extern const char kFtpScheme[];
32 CONTENT_EXPORT extern const char kHttpScheme[]; 32 CONTENT_EXPORT extern const char kHttpScheme[];
33 CONTENT_EXPORT extern const char kHttpsScheme[]; 33 CONTENT_EXPORT extern const char kHttpsScheme[];
34 CONTENT_EXPORT extern const char kJavaScriptScheme[]; 34 CONTENT_EXPORT extern const char kJavaScriptScheme[];
35 CONTENT_EXPORT extern const char kMailToScheme[]; 35 CONTENT_EXPORT extern const char kMailToScheme[];
36 CONTENT_EXPORT extern const char kMetadataScheme[]; 36 CONTENT_EXPORT extern const char kMetadataScheme[];
37 CONTENT_EXPORT extern const char kViewSourceScheme[]; 37 CONTENT_EXPORT extern const char kViewSourceScheme[];
38 38
39 // Used to separate a standard scheme and the hostname: "://". 39 // Used to separate a standard scheme and the hostname: "://".
40 CONTENT_EXPORT extern const char kStandardSchemeSeparator[]; 40 CONTENT_EXPORT extern const char kStandardSchemeSeparator[];
41 41
42 // About URLs (including schemes). 42 // About URLs (including schemes).
43 CONTENT_EXPORT extern const char kAboutBlankURL[]; 43 CONTENT_EXPORT extern const char kAboutBlankURL[];
44 CONTENT_EXPORT extern const char kAboutCrashURL[]; 44 CONTENT_EXPORT extern const char kAboutCrashURL[];
45 45
46 // Special URL used to start a navigation to an error page. 46 // Special URL used to start a navigation to an error page.
47 extern const char kUnreachableWebDataURL[]; 47 extern const char kUnreachableWebDataURL[];
48 48
49 // Call near the beginning of startup to register the content layer's internal
50 // URLs that should be parsed as "standard" with the googleurl library. The
51 // embedder can pass a 0-terminated list of additional schemes that should be
52 // savable, or NULL if the standard list is sufficient.
53 void CONTENT_EXPORT RegisterContentSchemes(
54 const char** additional_savable_schemes);
55
49 } // namespace chrome 56 } // namespace chrome
50 57
51 #endif // CONTENT_COMMON_URL_CONSTANTS_H_ 58 #endif // CONTENT_COMMON_URL_CONSTANTS_H_
OLDNEW
« no previous file with comments | « content/browser/download/save_package.cc ('k') | content/common/url_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698