CrossOriginRequestPlugin: Change visibility of a couple of helper methods to make subclassing easier.