Files
Attractor/SBrowserProcessBundle/SBRWebProcessProxy.h
James Magahern 99bd3af187 Fix warnings
2023-04-19 14:33:17 -07:00

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