TaskScheduler: Allow observing worker entering/exiting its main function.

This new observer interface will be used by the UMA thread profiler
(chrome/common/thread_profiler.h) to be informed of threads created
by TaskScheduler. The thread profiler will collect stack samples on
these threads throughout their lifetime.

Bug: 839115
Change-Id: I69f57bed8244cb57785901a1202c8fbf2f9da350
Reviewed-on: https://chromium-review.googlesource.com/1062805
Commit-Queue: François Doray <fdoray@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Reviewed-by: Mike Wittman <wittman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559705}

CrOS-Libchrome-Original-Commit: 689ded6f42e431634ac9c96264a9d10dd39906da
16 files changed
tree: 7693044da216e23d6c61ef601bc66131846f2a9f
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/