2020-07-22 19:29:38 -07:00
|
|
|
//
|
|
|
|
|
// SBRWebProcessProxy.h
|
|
|
|
|
// SBrowser
|
|
|
|
|
//
|
|
|
|
|
// Created by James Magahern on 7/22/20.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
2020-07-29 17:46:53 -07:00
|
|
|
static inline NSString* SBRGetAllowedOriginsKey() {
|
|
|
|
|
return @"allowedOrigins";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static inline NSString* SBRGetAllScriptsAllowedKey() {
|
|
|
|
|
return @"allScriptsAllowed";
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-21 11:05:40 -07:00
|
|
|
static inline NSString* SBRGetPolicyTypeByOriginKey() {
|
|
|
|
|
return @"policyTypeByOrigin";
|
|
|
|
|
}
|
|
|
|
|
|
2020-07-22 19:29:38 -07:00
|
|
|
@protocol SBRWebProcessProxy <NSObject>
|
|
|
|
|
|
|
|
|
|
- (void)hello;
|
2020-07-29 17:46:53 -07:00
|
|
|
- (void)setAllScriptsAllowed:(BOOL)allowed;
|
2021-10-21 11:05:40 -07:00
|
|
|
- (void)syncAllowedResourceOrigins:(NSArray<NSString *> *)allowedOrigins;
|
|
|
|
|
- (void)syncPolicyTypes:(NSDictionary<NSString *, NSNumber *> *)policyTypes;
|
2020-07-22 19:29:38 -07:00
|
|
|
|
|
|
|
|
@end
|