Sri Lanka is in talks with two Chinese companies about investing up to $3 billion to build in a new refinery at its Chinese-controlled port, a top government official said on Friday.