Extension support for embedding API

> Since it is not this PR specific, can I do not separately?

For your reference, the utility class in `content/public/android/java/src/org/chromium/content/common/CleanupReference.java` might be helpful to resolve this issue.