Convert script policy to ObjC

This commit is contained in:
James Magahern
2021-10-21 11:05:40 -07:00
parent 31787f57ae
commit 70486c49de
11 changed files with 206 additions and 92 deletions

View File

@@ -15,6 +15,9 @@ NS_ASSUME_NONNULL_BEGIN
/// Returns a list of origins (e.g., "buzzert.net") for which we are allowed to load script resources from
- (NSSet<NSString *> *)allowedOriginsForScriptResources;
/// Returns a mapping between origin and SBRScriptOriginPolicyType, encoded as an NSNumber.
- (NSDictionary<NSString *, NSNumber *> *)scriptPolicyTypeByOrigin;
@end
@class SBRProcessBundleBridge;