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

Side by Side Diff: chrome/browser/printing/print_job.h

Issue 9969208: TabContents -> WebContentsImpl, part 20. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_PRINTING_PRINT_JOB_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Terminates the worker thread in a very controlled way, to work around any 107 // Terminates the worker thread in a very controlled way, to work around any
108 // eventual deadlock. 108 // eventual deadlock.
109 void ControlledWorkerShutdown(); 109 void ControlledWorkerShutdown();
110 110
111 content::NotificationRegistrar registrar_; 111 content::NotificationRegistrar registrar_;
112 112
113 // Main message loop reference. Used to send notifications in the right 113 // Main message loop reference. Used to send notifications in the right
114 // thread. 114 // thread.
115 MessageLoop* const ui_message_loop_; 115 MessageLoop* const ui_message_loop_;
116 116
117 // Source that generates the PrintedPage's (i.e. a TabContents). It will be 117 // Source that generates the PrintedPage's (i.e. a WebContents). It will be
118 // set back to NULL if the source is deleted before this object. 118 // set back to NULL if the source is deleted before this object.
119 PrintedPagesSource* source_; 119 PrintedPagesSource* source_;
120 120
121 // All the UI is done in a worker thread because many Win32 print functions 121 // All the UI is done in a worker thread because many Win32 print functions
122 // are blocking and enters a message loop without your consent. There is one 122 // are blocking and enters a message loop without your consent. There is one
123 // worker thread per print job. 123 // worker thread per print job.
124 scoped_ptr<PrintJobWorker> worker_; 124 scoped_ptr<PrintJobWorker> worker_;
125 125
126 // Cache of the print context settings for access in the UI thread. 126 // Cache of the print context settings for access in the UI thread.
127 PrintSettings settings_; 127 PrintSettings settings_;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 scoped_refptr<PrintedDocument> document_; 194 scoped_refptr<PrintedDocument> document_;
195 scoped_refptr<PrintedPage> page_; 195 scoped_refptr<PrintedPage> page_;
196 const Type type_; 196 const Type type_;
197 197
198 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); 198 DISALLOW_COPY_AND_ASSIGN(JobEventDetails);
199 }; 199 };
200 200
201 } // namespace printing 201 } // namespace printing
202 202
203 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ 203 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud_unittest.cc ('k') | chrome/browser/printing/print_preview_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698