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

Side by Side Diff: third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h

Issue 1383483007: Add scheme exceptions for isSecureContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Update comment Created 5 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
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 PolicyAreaNone = 0, 107 PolicyAreaNone = 0,
108 PolicyAreaImage = 1 << 0, 108 PolicyAreaImage = 1 << 0,
109 PolicyAreaStyle = 1 << 1, 109 PolicyAreaStyle = 1 << 1,
110 // Add more policy areas as needed by clients. 110 // Add more policy areas as needed by clients.
111 PolicyAreaAll = ~static_cast<uint32_t>(0), 111 PolicyAreaAll = ~static_cast<uint32_t>(0),
112 }; 112 };
113 static void registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme, PolicyAreas = PolicyAreaAll); 113 static void registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme, PolicyAreas = PolicyAreaAll);
114 static void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme); 114 static void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme);
115 static bool schemeShouldBypassContentSecurityPolicy(const String& scheme, Po licyAreas = PolicyAreaAll); 115 static bool schemeShouldBypassContentSecurityPolicy(const String& scheme, Po licyAreas = PolicyAreaAll);
116 116
117 // Schemes which bypass Secure Context checks defined in
118 // https://w3c.github.io/webappsec/specs/powerfulfeatures/#is-origin-trustwo rthy.
119 static void registerURLSchemeBypassingSecureContextCheck(const String& schem e);
120 static bool schemeShouldBypassSecureContextCheck(const String& scheme);
121
117 private: 122 private:
118 static const URLSchemesSet& localSchemes(); 123 static const URLSchemesSet& localSchemes();
119 }; 124 };
120 125
121 } // namespace blink 126 } // namespace blink
122 127
123 #endif // SchemeRegistry_h 128 #endif // SchemeRegistry_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698