Such legislation is impossible given that Google/Facebook are not Australian companies. At the end of the day, if the legislation makes their involvement in those countries a net negative for their bottom lines, they can and will take their ball and go home.