[Download] Use new C++ wrapper in common/extension.h

ExtensionAdapater should be deperacated by common::Extension and
common::Instance.