put these classes into an anonymous namespace

Change-Id: I29a30fcc8adab34fbe05a927d438c4e34d5c517b