Use placement new to initialize the persistent in V8NPObject

We just allocate some chunk of memory and reinterpret_cast it to
V8NPObject. We still need to properly construct the persistent inside of
it.

BUG=324225
R=dcarney@chromium.org

Review URL: https://codereview.chromium.org/96613005

git-svn-id: svn://svn.chromium.org/blink/trunk@162905 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove usage of deprecated V8 APIs from tests

BUG=324225
R=mkwst@chromium.org

Review URL: https://codereview.chromium.org/96953002

git-svn-id: svn://svn.chromium.org/blink/trunk@162906 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove deprecated v8 API usage from injected script manager

BUG=324225
R=mkwst@chromium.org

Review URL: https://codereview.chromium.org/96983003

git-svn-id: svn://svn.chromium.org/blink/trunk@162907 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Import a scoped_ptr based smart pointer into TestRunner library.

This lets us replace auto_ptr with something not deprecated on newer
STL implementations. However, unique_ptr is not present everywhere, so
we need to roll our own solution.

We also don't want to include base/memory/scoped_ptr.h directly to avoid
unnecesary cross depo dependencies.

BUG=324299
R=mkwst@chromium.org, abarth@chromium.org

Review URL: https://codereview.chromium.org/96653003

git-svn-id: svn://svn.chromium.org/blink/trunk@162908 bbb929c8-8fbe-4397-9dbb-9b2b20218538