Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: components/printing/renderer/print_web_view_helper.h

Issue 1228693002: Crash on nested IPC handlers in PrintWebViewHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698