Simplify ownership of a ThreadState's interruptors.

Have ThreadState assume ownership of interruptors registered with
addInterruptor(). That simplifies the handling on the caller side,
allowing them to register-and-forget rather than each having to
manually unregister & destruct their interruptor before shutting down.
(Not that this last step wasn't needed previously either, as ThreadState
would have destructed the interruptors upon its destruction.)

(ThreadState::removeInterruptor() is retained should it prove useful, but
currently unused.)

R=haraken
BUG=420515

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

git-svn-id: svn://svn.chromium.org/blink/trunk@199487 bbb929c8-8fbe-4397-9dbb-9b2b20218538
10 files changed
tree: 4cab247299246cf3840778b50df3b1f3a447010d
  1. third_party/