| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 static bool shouldTreatURLSchemeAsSecure(const String&); | 59 static bool shouldTreatURLSchemeAsSecure(const String&); |
| 60 | 60 |
| 61 static void registerURLSchemeAsNoAccess(const String&); | 61 static void registerURLSchemeAsNoAccess(const String&); |
| 62 static bool shouldTreatURLSchemeAsNoAccess(const String&); | 62 static bool shouldTreatURLSchemeAsNoAccess(const String&); |
| 63 | 63 |
| 64 // Display-isolated schemes can only be displayed (in the sense of | 64 // Display-isolated schemes can only be displayed (in the sense of |
| 65 // SecurityOrigin::canDisplay) by documents from the same scheme. | 65 // SecurityOrigin::canDisplay) by documents from the same scheme. |
| 66 static void registerURLSchemeAsDisplayIsolated(const String&); | 66 static void registerURLSchemeAsDisplayIsolated(const String&); |
| 67 static bool shouldTreatURLSchemeAsDisplayIsolated(const String&); | 67 static bool shouldTreatURLSchemeAsDisplayIsolated(const String&); |
| 68 | 68 |
| 69 static void registerURLSchemeAsEmptyDocument(const String&); | |
| 70 static bool shouldLoadURLSchemeAsEmptyDocument(const String&); | 69 static bool shouldLoadURLSchemeAsEmptyDocument(const String&); |
| 71 | 70 |
| 72 static void setDomainRelaxationForbiddenForURLScheme(bool forbidden, | 71 static void setDomainRelaxationForbiddenForURLScheme(bool forbidden, |
| 73 const String&); | 72 const String&); |
| 74 static bool isDomainRelaxationForbiddenForURLScheme(const String&); | 73 static bool isDomainRelaxationForbiddenForURLScheme(const String&); |
| 75 | 74 |
| 76 // Such schemes should delegate to SecurityOrigin::canRequest for any URL | 75 // Such schemes should delegate to SecurityOrigin::canRequest for any URL |
| 77 // passed to SecurityOrigin::canDisplay. | 76 // passed to SecurityOrigin::canDisplay. |
| 78 static bool canDisplayOnlyIfCanRequest(const String& scheme); | 77 static bool canDisplayOnlyIfCanRequest(const String& scheme); |
| 79 | 78 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 const String& scheme); | 141 const String& scheme); |
| 143 static bool schemeShouldBypassSecureContextCheck(const String& scheme); | 142 static bool schemeShouldBypassSecureContextCheck(const String& scheme); |
| 144 | 143 |
| 145 private: | 144 private: |
| 146 static const URLSchemesSet& localSchemes(); | 145 static const URLSchemesSet& localSchemes(); |
| 147 }; | 146 }; |
| 148 | 147 |
| 149 } // namespace blink | 148 } // namespace blink |
| 150 | 149 |
| 151 #endif // SchemeRegistry_h | 150 #endif // SchemeRegistry_h |
| OLD | NEW |