| Index: chrome/renderer/printing/print_web_view_helper.h
|
| diff --git a/chrome/renderer/printing/print_web_view_helper.h b/chrome/renderer/printing/print_web_view_helper.h
|
| index 71ff88c17a91242743826d31103a9c9c2921ff5e..1b5dd84e4f524660cde5d88beb20b2cece824c7c 100644
|
| --- a/chrome/renderer/printing/print_web_view_helper.h
|
| +++ b/chrome/renderer/printing/print_web_view_helper.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <vector>
|
|
|
| +#include "base/callback.h"
|
| #include "base/gtest_prod_util.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/shared_memory.h"
|
| @@ -461,6 +462,12 @@ class PrintWebViewHelper
|
| bool is_loading_;
|
| bool is_scripted_preview_delayed_;
|
| base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_;
|
| +
|
| + // Used to fix a race condition where the source is a PDF and print preview
|
| + // hangs because RequestPrintPreview is called before DidStopLoading() is
|
| + // called. This is a store for the RequestPrintPreview() call and its
|
| + // parameters so that it can be invoked after DidStopLoading.
|
| + base::Closure request_print_preview_closure_;
|
| DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
|
| };
|
|
|
|
|