Fix Mac build.

Virtual methods needs to go in the cpp files (Chromium style).
I think you should explicitly include `base/hash_tables.h` now to avoid depending on its inclusion indirectly.