| 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 COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 5 #ifndef COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| 6 #define COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 6 #define COMPONENTS_PRINTING_RENDERER_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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 int count_ = 0; | 494 int count_ = 0; |
| 495 DISALLOW_COPY_AND_ASSIGN(ScriptingThrottler); | 495 DISALLOW_COPY_AND_ASSIGN(ScriptingThrottler); |
| 496 }; | 496 }; |
| 497 | 497 |
| 498 ScriptingThrottler scripting_throttler_; | 498 ScriptingThrottler scripting_throttler_; |
| 499 | 499 |
| 500 bool print_node_in_progress_; | 500 bool print_node_in_progress_; |
| 501 PrintPreviewContext print_preview_context_; | 501 PrintPreviewContext print_preview_context_; |
| 502 bool is_loading_; | 502 bool is_loading_; |
| 503 bool is_scripted_preview_delayed_; | 503 bool is_scripted_preview_delayed_; |
| 504 int ipc_nesting_level_; |
| 504 | 505 |
| 505 // Used to fix a race condition where the source is a PDF and print preview | 506 // Used to fix a race condition where the source is a PDF and print preview |
| 506 // hangs because RequestPrintPreview is called before DidStopLoading() is | 507 // hangs because RequestPrintPreview is called before DidStopLoading() is |
| 507 // called. This is a store for the RequestPrintPreview() call and its | 508 // called. This is a store for the RequestPrintPreview() call and its |
| 508 // parameters so that it can be invoked after DidStopLoading. | 509 // parameters so that it can be invoked after DidStopLoading. |
| 509 base::Closure on_stop_loading_closure_; | 510 base::Closure on_stop_loading_closure_; |
| 510 | 511 |
| 511 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_; | 512 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_; |
| 512 | 513 |
| 513 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 514 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
| 514 }; | 515 }; |
| 515 | 516 |
| 516 } // namespace printing | 517 } // namespace printing |
| 517 | 518 |
| 518 #endif // COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 519 #endif // COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| OLD | NEW |