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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Special URL used to start a navigation to an error page. | 59 // Special URL used to start a navigation to an error page. |
60 extern const char kUnreachableWebDataURL[]; | 60 extern const char kUnreachableWebDataURL[]; |
61 | 61 |
62 // Special URL used to swap out a view being rendered by another process. | 62 // Special URL used to swap out a view being rendered by another process. |
63 extern const char kSwappedOutURL[]; | 63 extern const char kSwappedOutURL[]; |
64 | 64 |
65 // Null terminated list of schemes that are savable. This function can be | 65 // Null terminated list of schemes that are savable. This function can be |
66 // invoked on any thread. | 66 // invoked on any thread. |
67 CONTENT_EXPORT const char** GetSavableSchemes(); | 67 CONTENT_EXPORT const char** GetSavableSchemes(); |
68 | 68 |
69 // Call near the beginning of startup to register the content layer's internal | 69 // Note: ContentMainRunner calls this method internally as part of main |
70 // URLs that should be parsed as "standard" with the googleurl library. The | 70 // initialziation, so this function generally should not be called by |
71 // embedder can pass a 0-terminated list of additional schemes that should be | 71 // embedders. It's exported to facilitate test harnesses that do not |
72 // savable, or NULL if the standard list is sufficient. | 72 // utilize ContentMainRunner and that do not wish to lock the set |
73 CONTENT_EXPORT void RegisterContentSchemes( | 73 // of standard schemes at init time. |
74 const char** additional_savable_schemes); | 74 // |
| 75 // Called near the beginning of startup to register URL schemes that should |
| 76 // be parsed as "standard" with the googleurl library. Optionally, the set |
| 77 // of standard schemes is locked down. The embedder can add additional |
| 78 // schemes by overriding the ContentClient::AddAdditionalSchemes method. |
| 79 CONTENT_EXPORT void RegisterContentSchemes(bool lock_standard_schemes); |
75 | 80 |
76 } // namespace content | 81 } // namespace content |
77 | 82 |
78 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ | 83 #endif // CONTENT_PUBLIC_COMMON_URL_CONSTANTS_H_ |
OLD | NEW |