printing: Remove BlockingPool use

The passed-down GetBlockingPool is used to dump debug info. Removed it
from the interfaces and use base::PostTaskWithTraits at call sites.

BUG=667892

Change-Id: I23b98c393566a6a52f3451fc8cfbaf082f09af8f
Reviewed-on: https://chromium-review.googlesource.com/541856
Reviewed-by: Lei Zhang <[email protected]>
Commit-Queue: Xiyuan Xia <[email protected]>
Cr-Commit-Position: refs/heads/master@{#481215}
diff --git a/printing/printed_document.h b/printing/printed_document.h
index 56c397f..77b1984 100644
--- a/printing/printed_document.h
+++ b/printing/printed_document.h
@@ -18,7 +18,6 @@
 
 namespace base {
 class RefCountedMemory;
-class TaskRunner;
 }
 
 namespace printing {
@@ -41,8 +40,7 @@
   // originating source and settings.
   PrintedDocument(const PrintSettings& settings,
                   PrintedPagesSource* source,
-                  int cookie,
-                  base::TaskRunner* blocking_runner);
+                  int cookie);
 
   // Sets a page's data. 0-based. Takes metafile ownership.
   // Note: locks for a short amount of time.
@@ -154,8 +152,7 @@
   struct Immutable {
     Immutable(const PrintSettings& settings,
               PrintedPagesSource* source,
-              int cookie,
-              base::TaskRunner* blocking_runner);
+              int cookie);
     ~Immutable();
 
     // Print settings used to generate this document. Immutable.
@@ -171,9 +168,6 @@
     // simpler hash of PrintSettings since a new document is made each time the
     // print settings change.
     int cookie_;
-
-    // Native thread for blocking operations, like file access.
-    scoped_refptr<base::TaskRunner> blocking_runner_;
   };
 
   // All writable data member access must be guarded by this lock. Needs to be