Add ability to retrieve a thread_name given a thread_id.

The work to add GPU tracing needs the ability to map from a thread_id back
to a thread_name in order to allow us to have the correct display on the
chrome://tracing page.

We want to be able to output our traces without having to post to a thread
to handle the output, and to have the GPU traces differentiated from the
GPU-process which will be doing the tracing calls.

BUG=111509
TEST=Added tests in base_unittests


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

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


CrOS-Libchrome-Original-Commit: 7d342e882772e35c4e60e640f3501a84fd0a5bec
9 files changed
tree: d71f79d498c53dca652f4a868e8a2512809810f6
  1. base/
  2. build/
  3. dbus/
  4. ipc/
  5. testing/
  6. third_party/