30 lines
663 B
Objective-C
30 lines
663 B
Objective-C
//
|
|
// SBRWebProcessProxy.h
|
|
// SBrowser
|
|
//
|
|
// Created by James Magahern on 7/22/20.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
static inline NSString* SBRGetAllowedOriginsKey(void) {
|
|
return @"allowedOrigins";
|
|
}
|
|
|
|
static inline NSString* SBRGetAllScriptsAllowedKey(void) {
|
|
return @"allScriptsAllowed";
|
|
}
|
|
|
|
static inline NSString* SBRGetPolicyTypeByOriginKey(void) {
|
|
return @"policyTypeByOrigin";
|
|
}
|
|
|
|
@protocol SBRWebProcessProxy <NSObject>
|
|
|
|
- (void)hello;
|
|
- (void)setAllScriptsAllowed:(BOOL)allowed;
|
|
- (void)syncAllowedResourceOrigins:(NSArray<NSString *> *)allowedOrigins;
|
|
- (void)syncPolicyTypes:(NSDictionary<NSString *, NSNumber *> *)policyTypes;
|
|
|
|
@end
|