Step 5 in unifying the task manager's WebContents-based ResourceProviders.
commitec85ba8de2d9faa9af261e6a65ac7337cdd970cd
authornick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 1 Apr 2014 08:56:20 +0000 (1 08:56 +0000)
committernick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 1 Apr 2014 08:56:20 +0000 (1 08:56 +0000)
treed2890c47e3dc30c625e6ff13aa29088be9d18853
parentc7de2934d5f1d281bbc34f6a7d45de3557526508
Step 5 in unifying the task manager's WebContents-based ResourceProviders.

In this change, PrintingInformation, which plugs into
WebContentsResourceProvider, is introduced and the code that tracks
background printing pages is removed from TabContentsResourceProvider.

( WebContentsResourceProvider is introduced in an earlier patch:
https://codereview.chromium.org/196203003/ )

The new PrintingInformation tracks not only WebContents that are being
background printed, but also WebContents that are foreground print
preview dialog. Prior to this change these processes did not appear
in the task manager. Fixing this is what bug 345903 is about. A new
browsertest is added for this case.

BUG=348836, 345903
TEST=browser_tests including a new one

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260801 0039d316-1c4b-4281-b951-d872f2087c98
12 files changed:
chrome/app/generated_resources.grd
chrome/browser/printing/background_printing_manager.h
chrome/browser/printing/print_preview_dialog_controller.cc
chrome/browser/printing/print_preview_dialog_controller.h
chrome/browser/task_manager/printing_information.cc [new file with mode: 0644]
chrome/browser/task_manager/printing_information.h [new file with mode: 0644]
chrome/browser/task_manager/tab_contents_resource_provider.cc
chrome/browser/task_manager/task_manager.cc
chrome/browser/task_manager/task_manager_browsertest_util.cc
chrome/browser/task_manager/task_manager_browsertest_util.h
chrome/browser/ui/webui/print_preview/print_preview_ui_browsertest.cc
chrome/chrome_browser.gypi