Currently, toNSHTTPCookie() is a static method in MediaPlayerPrivateAVFoundationObjC.mm. It should be moved out into a platform-specific Cookie source file.