Add flag to Java -> JavaScript to disable exposing inherited methods.

Add a flag that allows Java Object injection into JavaScript to specify whether
or not only publicly declared methods of the specified class can be injected or
whether all public methods of a class should be injected (the current default).
This allows the specific APIs to only inject the few methods that should
be injected and not unknowingly expose any other methods (those include
getClass, getField, getMethod, getAnnotation, etc.. anything from Object or other
super classes).  In addition, this flag is passed down to other Java Object
injections that happen as the result of Objects being returned from method calls.

BUG=
TEST=


Review URL: https://chromiumcodereview.appspot.com/10793035

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147281 0039d316-1c4b-4281-b951-d872f2087c98
2 files changed