(Reuters) - Comcast Corp said on Thursday it would buy Time Warner Cable Inc for $45.2 billion in an all-stock deal that combines the two largest U.S. cable operators.