Skip to content
  • andersca@apple.com's avatar
    WKRemoteObjectInterface should keep track of allowed decodable classes · d50b65d5
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=123903
    
    Reviewed by Sam Weinig.
    
    * Shared/API/Cocoa/WKRemoteObjectInterface.mm:
    (allowedArgumentClassesForMethod):
    Helper function that returns a vector of sets of allowed classes for each method argument.
    
    (initializeAllowedArgumentClasses):
    Iterate over the methods in the protocol, get the extended method type encoding and create an
    NSMethodSignature from it. Finally, pass the signature to allowedArgumentClassesForMethod.
    
    (initializeAllowedArgumentClasses):
    Call the other initializeAllowedArgumentClasses twice, once for required methods,
    and once for optional methods.
    
    (-[WKRemoteObjectInterface initWithProtocol:identifier:]):
    Call initializeAllowedArgumentClasses.
    
    (-[WKRemoteObjectInterface _allowedArgumentClassesForSelector:]):
    Add new getter.
    
    * Shared/API/Cocoa/WKRemoteObjectInterfaceInternal.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d50b65d5