| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ | 5 #ifndef CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ |
| 6 #define CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ | 6 #define CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 int count_ = 0; | 452 int count_ = 0; |
| 453 DISALLOW_COPY_AND_ASSIGN(ScriptingThrottler); | 453 DISALLOW_COPY_AND_ASSIGN(ScriptingThrottler); |
| 454 }; | 454 }; |
| 455 | 455 |
| 456 ScriptingThrottler scripting_throttler_; | 456 ScriptingThrottler scripting_throttler_; |
| 457 | 457 |
| 458 bool print_node_in_progress_; | 458 bool print_node_in_progress_; |
| 459 PrintPreviewContext print_preview_context_; | 459 PrintPreviewContext print_preview_context_; |
| 460 bool is_loading_; | 460 bool is_loading_; |
| 461 bool is_scripted_preview_delayed_; | 461 bool is_scripted_preview_delayed_; |
| 462 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_; | |
| 463 | 462 |
| 464 // Used to fix a race condition where the source is a PDF and print preview | 463 // Used to fix a race condition where the source is a PDF and print preview |
| 465 // hangs because RequestPrintPreview is called before DidStopLoading() is | 464 // hangs because RequestPrintPreview is called before DidStopLoading() is |
| 466 // called. This is a store for the RequestPrintPreview() call and its | 465 // called. This is a store for the RequestPrintPreview() call and its |
| 467 // parameters so that it can be invoked after DidStopLoading. | 466 // parameters so that it can be invoked after DidStopLoading. |
| 468 base::Closure on_stop_loading_closure_; | 467 base::Closure on_stop_loading_closure_; |
| 468 |
| 469 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_; |
| 470 |
| 469 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 471 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
| 470 }; | 472 }; |
| 471 | 473 |
| 472 } // namespace printing | 474 } // namespace printing |
| 473 | 475 |
| 474 #endif // CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ | 476 #endif // CHROME_RENDERER_PRINTING_PRINT_WEB_VIEW_HELPER_H_ |
| OLD | NEW |