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

Side by Side Diff: third_party/WebKit/public/web/WebSecurityPolicy.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
« no previous file with comments | « third_party/WebKit/Source/web/WebSecurityPolicy.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 const WebURL& sourceOrigin, const WebString& destinationProtocol, 106 const WebURL& sourceOrigin, const WebString& destinationProtocol,
107 const WebString& destinationHost, bool allowDestinationSubdomains); 107 const WebString& destinationHost, bool allowDestinationSubdomains);
108 BLINK_EXPORT static void removeOriginAccessWhitelistEntry( 108 BLINK_EXPORT static void removeOriginAccessWhitelistEntry(
109 const WebURL& sourceOrigin, const WebString& destinationProtocol, 109 const WebURL& sourceOrigin, const WebString& destinationProtocol,
110 const WebString& destinationHost, bool allowDestinationSubdomains); 110 const WebString& destinationHost, bool allowDestinationSubdomains);
111 BLINK_EXPORT static void resetOriginAccessWhitelists(); 111 BLINK_EXPORT static void resetOriginAccessWhitelists();
112 112
113 // Support for whitelisting origins to treat them as trustworthy. 113 // Support for whitelisting origins to treat them as trustworthy.
114 BLINK_EXPORT static void addOriginTrustworthyWhiteList(const WebSecurityOrig in&); 114 BLINK_EXPORT static void addOriginTrustworthyWhiteList(const WebSecurityOrig in&);
115 115
116 // Support for whitelisting schemes as bypassing secure context checks.
117 BLINK_EXPORT static void addSchemeToBypassSecureContextWhitelist(const WebSt ring&);
118
116 // Returns the referrer modified according to the referrer policy for a 119 // Returns the referrer modified according to the referrer policy for a
117 // navigation to a given URL. If the referrer returned is empty, the 120 // navigation to a given URL. If the referrer returned is empty, the
118 // referrer header should be omitted. 121 // referrer header should be omitted.
119 BLINK_EXPORT static WebString generateReferrerHeader(WebReferrerPolicy, cons t WebURL&, const WebString& referrer); 122 BLINK_EXPORT static WebString generateReferrerHeader(WebReferrerPolicy, cons t WebURL&, const WebString& referrer);
120 123
121 // Registers an URL scheme to not allow manipulation of the loaded page 124 // Registers an URL scheme to not allow manipulation of the loaded page
122 // by bookmarklets or javascript: URLs typed in the omnibox. 125 // by bookmarklets or javascript: URLs typed in the omnibox.
123 BLINK_EXPORT static void registerURLSchemeAsNotAllowingJavascriptURLs(const WebString&); 126 BLINK_EXPORT static void registerURLSchemeAsNotAllowingJavascriptURLs(const WebString&);
124 127
125 private: 128 private:
126 WebSecurityPolicy(); 129 WebSecurityPolicy();
127 }; 130 };
128 131
129 } // namespace blink 132 } // namespace blink
130 133
131 #endif 134 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebSecurityPolicy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698