OLD | NEW |
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 #ifndef CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
6 #define CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ | 6 #define CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; | 53 CONTENT_EXPORT extern const char kChromeUIShorthangURL[]; |
54 | 54 |
55 } // namespace chrome | 55 } // namespace chrome |
56 | 56 |
57 namespace content { | 57 namespace content { |
58 | 58 |
59 // Used to separate a standard scheme and the hostname: "://". | 59 // Used to separate a standard scheme and the hostname: "://". |
60 CONTENT_EXPORT extern const char kStandardSchemeSeparator[]; | 60 CONTENT_EXPORT extern const char kStandardSchemeSeparator[]; |
61 | 61 |
62 // Special URL used to start a navigation to an error page. | 62 // Special URL used to start a navigation to an error page. |
63 extern const char kUnreachableWebDataURL[]; | 63 CONTENT_EXPORT extern const char kUnreachableWebDataURL[]; |
64 | 64 |
65 // Special URL used to swap out a view being rendered by another process. | 65 // Special URL used to swap out a view being rendered by another process. |
66 extern const char kSwappedOutURL[]; | 66 extern const char kSwappedOutURL[]; |
67 | 67 |
68 // Null terminated list of schemes that are savable. This function can be | 68 // Null terminated list of schemes that are savable. This function can be |
69 // invoked on any thread. | 69 // invoked on any thread. |
70 CONTENT_EXPORT const char** GetSavableSchemes(); | 70 CONTENT_EXPORT const char** GetSavableSchemes(); |
71 | 71 |
72 // Note: ContentMainRunner calls this method internally as part of main | 72 // Note: ContentMainRunner calls this method internally as part of main |
73 // initialziation, so this function generally should not be called by | 73 // initialziation, so this function generally should not be called by |
74 // embedders. It's exported to facilitate test harnesses that do not | 74 // embedders. It's exported to facilitate test harnesses that do not |
75 // utilize ContentMainRunner and that do not wish to lock the set | 75 // utilize ContentMainRunner and that do not wish to lock the set |
76 // of standard schemes at init time. | 76 // of standard schemes at init time. |
77 // | 77 // |
78 // Called near the beginning of startup to register URL schemes that should | 78 // Called near the beginning of startup to register URL schemes that should |
79 // be parsed as "standard" with the googleurl library. Optionally, the set | 79 // be parsed as "standard" with the googleurl library. Optionally, the set |
80 // of standard schemes is locked down. The embedder can add additional | 80 // of standard schemes is locked down. The embedder can add additional |
81 // schemes by overriding the ContentClient::AddAdditionalSchemes method. | 81 // schemes by overriding the ContentClient::AddAdditionalSchemes method. |
82 CONTENT_EXPORT void RegisterContentSchemes(bool lock_standard_schemes); | 82 CONTENT_EXPORT void RegisterContentSchemes(bool lock_standard_schemes); |
83 | 83 |
84 } // namespace content | 84 } // namespace content |
85 | 85 |
86 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ | 86 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
OLD | NEW |