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

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

Issue 569233002: Refactoring the order of the weak_ptr_factory in chrome/renderer folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « chrome/renderer/media/cast_rtp_stream.h ('k') | chrome/renderer/translate/translate_helper.h » ('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 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
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_
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_rtp_stream.h ('k') | chrome/renderer/translate/translate_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698