| 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 d10db9792522392b6314f7dda406db298532bf59..bad03aa0774714052dda6915cfcdc0ab64757113 100644
|
| --- a/chrome/renderer/printing/print_web_view_helper.h
|
| +++ b/chrome/renderer/printing/print_web_view_helper.h
|
| @@ -10,6 +10,7 @@
|
| #include "base/gtest_prod_util.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/shared_memory.h"
|
| +#include "base/memory/weak_ptr.h"
|
| #include "base/time/time.h"
|
| #include "content/public/renderer/render_view_observer.h"
|
| #include "content/public/renderer/render_view_observer_tracker.h"
|
| @@ -112,6 +113,8 @@ class PrintWebViewHelper
|
| // RenderViewObserver implementation.
|
| virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
| virtual void PrintPage(WebKit::WebFrame* frame, bool user_initiated) OVERRIDE;
|
| + virtual void DidStartLoading() OVERRIDE;
|
| + virtual void DidStopLoading() OVERRIDE;
|
|
|
| // Message handlers ---------------------------------------------------------
|
|
|
| @@ -326,6 +329,9 @@ class PrintWebViewHelper
|
| // Scripted printing will be blocked for a limited amount of time.
|
| void IncrementScriptedPrintCount();
|
|
|
| + // Shows scripted print preview when options from plugin are availible.
|
| + void ShowScriptedPrintPreview();
|
| +
|
| void RequestPrintPreview(PrintPreviewRequestType type);
|
|
|
| // Checks whether print preview should continue or not.
|
| @@ -478,6 +484,9 @@ class PrintWebViewHelper
|
|
|
| bool print_node_in_progress_;
|
| PrintPreviewContext print_preview_context_;
|
| + bool is_loading_;
|
| + bool is_scripted_preview_delayed_;
|
| + base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_;
|
| DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
|
| };
|
|
|
|
|